Code for random number generator???

This is a discussion on Code for random number generator??? within the C++ Programming forums, part of the General Programming Boards category; Is there a specific function/statement/whatever that generates a random four digit number in Microsoft Visual C++? (Don't make me use ...

  1. #1
    Registered User
    Join Date
    Feb 2005
    Posts
    18

    Question Code for random number generator???

    Is there a specific function/statement/whatever that generates a random four digit number in Microsoft Visual C++?
    (Don't make me use arrays!)

  2. #2
    Registered User
    Join Date
    Feb 2005
    Posts
    18
    I guess I can search for something...I bet this has been posted before.
    Sorry all.

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    Quote Originally Posted by mero24
    I guess I can search for something...I bet this has been posted before.
    Sorry all.

    * Prelude has a heart attack and logs out permanently *
    My best code is written with the delete key.

  4. #4
    Resident nerd elnerdo's Avatar
    Join Date
    Apr 2005
    Location
    Northern NJ
    Posts
    51
    It's only in the faq.
    nerds unite!

    I'm using windows XP.
    I'm using dev-C++ by bloodshed.

  5. #5
    Let's do some coding! Welshy's Avatar
    Join Date
    Mar 2005
    Location
    Staffordshire University, UK
    Posts
    168
    or the tutorial section

  6. #6
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    or rand()
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. memory issue
    By t014y in forum C Programming
    Replies: 2
    Last Post: 02-21-2009, 12:37 AM
  2. Number Guessing
    By blacknapalm in forum C Programming
    Replies: 2
    Last Post: 10-01-2008, 02:48 AM
  3. help with random number generator
    By Brimak86 in forum C Programming
    Replies: 3
    Last Post: 01-12-2008, 09:37 PM
  4. Random number generator
    By PaulStat in forum C Programming
    Replies: 5
    Last Post: 11-29-2006, 07:34 AM
  5. Random Number Generator
    By Ikurik in forum C++ Programming
    Replies: 16
    Last Post: 08-17-2003, 08:34 PM

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