00001 00006 // Written by Curtis Olson, started July 1997. 00007 // 00008 // Copyright (C) 1997 Curtis L. Olson - http://www.flightgear.org/~curt 00009 // 00010 // This library is free software; you can redistribute it and/or 00011 // modify it under the terms of the GNU Library General Public 00012 // License as published by the Free Software Foundation; either 00013 // version 2 of the License, or (at your option) any later version. 00014 // 00015 // This library is distributed in the hope that it will be useful, 00016 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 // Library General Public License for more details. 00019 // 00020 // You should have received a copy of the GNU General Public License 00021 // along with this program; if not, write to the Free Software 00022 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00023 // 00024 // $Id: sg__random_8h-source.html,v 1.15 2007-12-17 15:37:10 curt Exp $ 00025 00026 00027 #ifndef _SG_RANDOM_H 00028 #define _SG_RANDOM_H 00029 00030 00031 #ifdef __cplusplus 00032 extern "C" { 00033 #endif 00034 00035 00040 void sg_srandom_time(); 00041 00047 void sg_srandom_time_10(); 00048 00054 void sg_srandom( unsigned int seed ); 00055 00060 double sg_random(); 00061 00062 00063 #ifdef __cplusplus 00064 } 00065 #endif 00066 00067 00068 #endif // _SG_RANDOM_H 00069 00070
1.5.1