random number algorythms

This is a discussion on random number algorythms within the A Brief History of Cprogramming.com forums, part of the Community Boards category; can someone give me a formula or algorythm that will generate a random or pseudo-random number? i've always been wondering ...

  1. #1
    Registered User Aran's Avatar
    Join Date
    Aug 2001
    Posts
    1,301

    random number algorythms

    can someone give me a formula or algorythm that will generate a random or pseudo-random number?

    i've always been wondering how this is done...

  2. #2
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,136
    Oh man, I saw this somewhere before. I think it's pretty basic from what I remember. It just has some simple operations with large numbers I think.

  3. #3
    Peace
    Join Date
    Aug 2001
    Posts
    1,510
    source code for this problem.
    "There's always another way"
    -lightatdawn (lightatdawn.cprogramming.com)

  4. #4
    Registered User Scourfish's Avatar
    Join Date
    Mar 2002
    Posts
    397
    Do a search on google for the "Mersene Twister", it's supposed to be strong enough for industrial use, whatever that means.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Random number in range generation.
    By hebali in forum C Programming
    Replies: 19
    Last Post: 03-04-2008, 10:46 AM
  2. adding a number to a number
    By bigmac(rexdale) in forum C Programming
    Replies: 11
    Last Post: 10-24-2007, 01:56 PM
  3. How exactly does the random number generator work?
    By Finchie_88 in forum C++ Programming
    Replies: 6
    Last Post: 08-24-2007, 01:46 AM
  4. random number tutorial
    By 7stud in forum C++ Programming
    Replies: 3
    Last Post: 07-26-2005, 03:41 PM
  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