Data, Knowledge & Life

Weiwei Cheng's blog

Get a true random number

leave a comment »

As you may know, most random numbers used in computer programs are pseudo-random, which means they are generated in a predictable fashion using a mathematical formula. They are not really random! Though this is fine for many purposes, it may not be random in the way you expect if you’re used to dice rolls and lottery drawings.

A true random number generator is offered by random.org (more options). The randomness comes from atmospheric noise, which for many purposes is better than the pseudo-random number algorithms typically used in computer programs. See more on randomness at here.

Advertisements

Written by Weiwei

11/08/2009 在 14:15

发表在 杂话

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: