Page retrieved from the Internet Archive Wayback Machine

Generate and use pseudo random numbers

Basic idea

It is very difficult for a computer to generate truly random numbers. However, functions exist which are computationally efficient and generate numbers which seem reasonably random statistically-speaking. These functions are called pseudo random number generators, and the numbers they generate are called pseudo-random numbers. The methodology of how these functions generate these numbers is a computer science topic, beyond the scope of this class. However, given an already-existing pseudo random number generator, it is not difficult to use the function effectively. You just need to understand a few basic principles:

Application

Application is demonstrated in hello-random.asm

Basic Generation of Random numbers

Using random numbers

ECE238Spr08/tutorials/Random (last edited 2008-04-20 21:55:04 by JohnHarrison)