Buckys C++ Programming Tutorials - 27 - Random Number Generator
Top Comments
All Comments (118)
-
compared tot he ones of thenewboston of course ...
-
seriously all my random numbers are exactelly the same!
-
What is the difference between using time(0) and time(NULL)? And when declaring a variable to set time() to, suck as s, what is the difference between declaring it int s; and time_t s; ?
-
the time() function returns the number of seconds from January 1, 1970
-
Thanks Bucky. I love the way you explain everything. You're awesome dude!
-
@1Razerkey It can still be predicted, in a sense. Try making an srand time generator, and running it every few seconds. The value changes in predictable amounts, unless you're using another function, like the modulus.
-
@funkydiddykong arent computers just techbrains?
-
Arnt we just biocomputers?
thumbs up if you did cout << rand(); and got 41 as well
ben1996123 6 months ago 40
in my language rand = prostitute !!!! :P
maharshi1893 5 months ago 24