• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Is rand() not that random??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is rand() not that random??


  • Subject: Re: Is rand() not that random??
  • From: Brian Hook <email@hidden>
  • Date: Mon, 10 Dec 2001 08:04:51 -0800

In a nutshell, most implementations of rand() kinda suck. There are Web pages devoted to the discussion of PRNGs, so I'd recommend you research those for a complete discussion on the topic.

The short answer is "use the Mersenne Twister PRNG".

Brian


References: 
 >Is rand() not that random?? (From: Alexandre Aybes <email@hidden>)

  • Prev by Date: Re: Is rand() not that random??
  • Next by Date: Re: Is rand() not that random??
  • Previous by thread: Re: Is rand() not that random??
  • Next by thread: Re: notification before dockMenu is shown
  • Index(es):
    • Date
    • Thread