Thread: Random number generation

  1. #1
    Registered User
    Join Date
    Apr 2010
    Posts
    7

    Post Random number generation

    hi,
    i need a program to generate random numbes upto 100 without using rand() function in c?...is there any way to do this task...tell ur suggestions plz...thanks in advance..

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Do some network programming to get numbers from random.org.

  3. #3
    Making mistakes
    Join Date
    Dec 2008
    Posts
    476
    ^^ That would be the best solution

    But anyway, if you don't need *TRUE* random numbers, you can write a small pseudo-random number generator yourself.

    Or use one of the bazillions of non-standard features of MSVC, such as s_rand() or _rand(). If they exist.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. xor linked list
    By adramalech in forum C Programming
    Replies: 23
    Last Post: 10-14-2008, 10:13 AM
  2. Counting number from a random file
    By kamisama in forum C Programming
    Replies: 42
    Last Post: 02-22-2005, 05:16 PM
  3. non repeating random number generation?
    By gencor45 in forum C# Programming
    Replies: 1
    Last Post: 02-08-2005, 05:23 PM
  4. random number between negative and positive number
    By anomaly in forum C++ Programming
    Replies: 6
    Last Post: 12-06-2003, 08:40 AM
  5. Random Number Generation
    By drdroid in forum A Brief History of Cprogramming.com
    Replies: 21
    Last Post: 08-02-2003, 03:35 AM