need help generating a random number

This is a discussion on need help generating a random number within the C++ Programming forums, part of the General Programming Boards category; Hello Everyone, I just started C++ a few weeks ago, and I need some help. Does anyone know how to ...

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    5

    Unhappy need help generating a random number

    Hello Everyone,

    I just started C++ a few weeks ago, and I need some help.
    Does anyone know how to generate a random number, say between x and y ?

    Any help would be appreciated.

    Thanks!

  2. #2
    Blank
    Join Date
    Aug 2001
    Posts
    1,034
    It's in the faq!

  3. #3
    Fingerstyle Guitarist taylorguitarman's Avatar
    Join Date
    Aug 2001
    Posts
    564
    do a thread search this topic was recently covered.
    If a tree falls in the forest, and no one is around to see it, do the other trees make fun of it?

  4. #4
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Random number generator
    By PaulStat in forum C Programming
    Replies: 5
    Last Post: 11-29-2006, 07:34 AM
  2. Random Number: Mersenne Twister Source Needed
    By mercury529 in forum C++ Programming
    Replies: 12
    Last Post: 11-26-2006, 11:40 AM
  3. Help generating multiple random numbers
    By d-dub in forum C++ Programming
    Replies: 7
    Last Post: 10-30-2006, 01:00 PM
  4. Counting number from a random file
    By kamisama in forum C Programming
    Replies: 42
    Last Post: 02-22-2005, 05:16 PM
  5. How do I restart a random number sequence.
    By jeffski in forum C Programming
    Replies: 6
    Last Post: 05-29-2003, 03:40 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21