00001 00002 /*---------------------------------------------------------------------------- 00003 E.S.O. 00004 ----------------------------------------------------------------------------- 00005 File name : random_numbers.h 00006 Author : Nicolas Devillard 00007 Created on : Tue, Apr 29th, 1997 00008 Language : ANSI C 00009 Description : Random number generation routines 00010 This module focuses on generating random numbers 00011 having a given probability density distribution. 00012 Before any call or series of calls to a number 00013 generating function, call random_init() first. 00014 ---------------------------------------------------------------------------*/ 00015 00016 /* 00017 00018 $Id: random_numbers.h,v 1.1 2003/09/03 12:50:47 amodigli Exp $ 00019 $Author: amodigli $ 00020 $Date: 2003/09/03 12:50:47 $ 00021 $Revision: 1.1 $ 00022 00023 */ 00024 00025 #ifndef _RANDOM_NUMBERS_H_ 00026 #define _RANDOM_NUMBERS_H_ 00027 00028 /*--------------------------------------------------------------------------- 00029 Includes 00030 ---------------------------------------------------------------------------*/ 00031 00032 #include <stdio.h> 00033 #include <stdlib.h> 00034 #include <math.h> 00035 00036 #include <sys/types.h> 00037 #include <unistd.h> 00038 00039 00040 /*--------------------------------------------------------------------------- 00041 Function prototypes 00042 ---------------------------------------------------------------------------*/ 00043 00044 /*-------------------------------------------------------------------------*/ 00056 /*--------------------------------------------------------------------------*/ 00057 00058 void 00059 random_init(void) ; 00060 00061 00062 /*-------------------------------------------------------------------------*/ 00113 /*--------------------------------------------------------------------------*/ 00114 00115 00116 double random_gauss(double sigma) ; 00117 00118 00119 /*-------------------------------------------------------------------------*/ 00148 /*--------------------------------------------------------------------------*/ 00149 00150 double random_lorentz(double dispersion) ; 00151 00152 00153 #endif 00154
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001