Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Buckys C++ Programming Tutorials - 27 - Random Number Generator

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
22,119
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 9, 2011

For all of our videos, visit http://thenewboston.com

  • likes, 1 dislikes

Link to this comment:

Share to:

Top Comments

  • thumbs up if you did cout << rand(); and got 41 as well

  • in my language rand = prostitute !!!! :P

see all

All Comments (118)

Sign In or Sign Up now to post a comment!
  • 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?

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more