What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Random Number Generation

Random Number Generation
Author: Message:
Adeptus
Senior Member
****


Posts: 732
Reputation: 40
Joined: Oct 2005
RE: Random Number Generation
quote:
what i dont understand is how it works, how is anything with a computer random? there must be some sort of code or whatever which decides the number, it cant just be plucked out of thin air... can it?
In most cases you are correct and the numbers are only pseudo-random.  That is certainly true of standard random number functions of most programming languages.

However, it doesn't have to be so.  Truly random numbers can be generated by specialized hardware (usually using Gaussian noise from a semiconductor junction).  Intel motherboard chipsets, starting with i810 released in 1999, contain such hardware and provide a standartized interface to it. 

The Intel hardware random number generator is supported by Linux kernel as entropy source for /dev/random and /dev/urandom devices.  Most Linux applications use these devices to obtain random numbers, so they  benefit from the hardware random number generation when running on machines using Intel chipsets, without the application programmers having to do anything special.  These random numbers are truly random.

It is also possible to build pretty good entropy by accumulating data like timing between keystrokes, mouse movements, and the durations of disk I/O requests.  While not random in the strictest of senses, the sequence and timing of such events is virtually impossible to predict or reproduce, especially on modern multi-tasking systems running several apps at once.


This post was edited on 08-21-2006 at 03:36 AM by Adeptus.
08-21-2006 03:33 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Random Number Generation - by M73A on 08-21-2006 at 12:03 AM
RE: Random Number Generation - by user27089 on 08-21-2006 at 12:20 AM
RE: Random Number Generation - by surfichris on 08-21-2006 at 12:25 AM
RE: Random Number Generation - by CookieRevised on 08-21-2006 at 02:17 AM
RE: Random Number Generation - by Bolter99 on 08-21-2006 at 03:06 AM
RE: Random Number Generation - by Adeptus on 08-21-2006 at 03:33 AM
RE: Random Number Generation - by M73A on 08-21-2006 at 09:29 AM
RE: Random Number Generation - by CookieRevised on 08-21-2006 at 10:20 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On