Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

random.c

Go to the documentation of this file.
00001 /**********************************************************************
00002 * FILE: random.c
00003 * AUTHOR: Christopher L
00004 * DATE: 15 March 1993
00005 * PURPOSE:
00006 *   Defines a global random number generator.
00007 ***********************************************************************/
00008  
00009 #include "random.h"
00010  
00011 /**********************************************************************
00012 * Declarations
00013 ***********************************************************************/
00014  
00015 Randomizer Random;    // Global random number generator.
00016 
00017 /**********************************************************************
00018 * FUNCTION:  Randomizer::Randomizer
00019 *
00020 * PURPOSE:
00021 *   Constructor for the Randomizer class;  Seeds the random number
00022 *   generator.
00023 ***********************************************************************/
00024  
00025 Randomizer::Randomizer (void)
00026 {
00027   time (&seed);
00028   srand (seed);
00029 }
00030  

Generated on Sun Jul 6 23:07:16 2003 for Scotland Yard by doxygen1.2.15