4577169 [rkeene@sledge /home/rkeene/devel/cdplay-0.3.7]$ cat -n random.h
 1 /* 
 2    The purpose of this function is provide an easy, software
 3    based method of generating random numbers.  The method 
 4    by which this is accomplished is described below.
 5 
 6    Since they are based on conditions of the system, if
 7    used on a *nix system they yeild very random and
 8    unpredictable results due to swapping and other odd
 9    things (possibly even temperature)
10    
11    Since we measure the time of execution of a program
12    in the highest precision measurable per system (normally
13    microseconds), and use it as a large factor in our
14    random number algorithm, we get affected easily by any-
15    thing.
16    
17      -- rkeene [310719991500]
18 
19 */
20 extern unsigned long generate_random_number (unsigned long max);
21 extern unsigned long GetClicks (void);
4577170 [rkeene@sledge /home/rkeene/devel/cdplay-0.3.7]$

Click here to go back to the directory listing.
Click here to download this file.
last modified: 2008-04-19 07:55:06