Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>srand() - specify seed value for rand()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     srand() - specify seed value for rand()
  Usage:    srand(<number>)
  Params:   integer <number> - seed number for rand
  Returns:  nothing

 ---------------------------------- Example ---------------------------------

                 srand(10234)
                 ? rand()

  Note:     This seed value is used by rand(). Using the same seed
            value will produce the same set of random numbers when
            using the srand() rand() combination.


See Also: rand() random() seed()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson