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

C Programming Tutorial - 13 - Seeding Random Numbers

Loading...

Sign in or sign up now!
42,745
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 9, 2009

How to use a seed. Not the kind you are thinking of either...

Category:

Howto & Style

Tags:

License:

Standard YouTube License

Link to this comment:

Share to:

Top Comments

  • i love ur jumber numberator :)

  • "NICE!"

see all

All Comments (115)

Sign In or Sign Up now to post a comment!
  • Can a we seed a seed with a seed of a seed????? that would be the absolute best way ever to get a seed. :P

  • can we make it a random case whileloop?

  • @ttognala U can always try it, for me it doesn't work

  • Make more C tutorials please Bucky!

  • time identifier not found keeps coming up in my program, whats the story with that?

  • Bucky, thanks for the tutorials. They are very helpful. I've got a question. In this tut you showed us how to use srand. How do you limit the generated random numbers to a given interval (say, a number between 1 and 100)? In the previous tut, you taught us that the formula 1+rand()%100 would do the trick. But I tried to modify this tut to make the program generate a seed random number between 1 and 100, and I got the same number 15 times.

  • Jumber generator :D love your jokes and tutorials

View all Comments »
Loading...

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