+ 1
What is the use of rand?
For which purpose it used they just mentioned that it is used for random number, i didn't get it.
2 Antworten
+ 4
Hello Majid Ali Shah
rand() generates a pseudo random number.
https://www.sololearn.com/learn/CPlusPlus/1638/?ref=app
I am not sure which part of this lesson you don't understand.
Just a simple example:
Imagine you want to create a guess the number game.
int number = 4; would be very boring. ;)
+ 2
Thanks...