Changeset 913 in Sophya for trunk/SophyaLib/BaseTools/srandgen.c
- Timestamp:
- Apr 13, 2000, 5:58:41 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BaseTools/srandgen.c
r851 r913 35 35 */ 36 36 37 /*! \defgroup RandGen 38 Random number generators */ 39 40 /*! \ingroup SysTools 41 \fn frand01 42 Returns a random number (float) with flat distribution between 0 ... 1 43 */ 44 /*! \ingroup SysTools 45 \fn drand01 46 Returns a random number (double) with flat distribution between 0 ... 1 47 */ 48 /*! \ingroup SysTools 49 \fn frandpm1() 50 Returns a random number (float) with flat distribution between -1 ... 1 51 */ 52 /*! \ingroup SysTools 53 \fn drandpm1() 54 Returns a random number (double) with flat distribution between -1 ... 1 55 */ 56 37 57 /*=========================================================================*/ 38 58 /* … … 43 63 -- 44 64 */ 65 66 /*! \ingroup SysTools 67 Fast initialisation of the random number generator \c (drand48) 68 using a \c long type value (cf \c srand48 ) 69 */ 45 70 void Ini_Ranf_Quick(long seed_val, int lp) 46 71 { … … 57 82 48 bits (cf seed48). 58 83 -- 84 */ 85 /*! \ingroup SysTools 86 complete initialisation of the random number generator \c (drand48) 87 using a \c using 48 bits (cf \c seed48 ) 59 88 */ 60 89 void Ini_Ranf(unsigned short seed_16v[3], int lp) … … 73 102 de 48 bits (cf seed48). 74 103 -- 104 */ 105 /*! \ingroup SysTools 106 Returns the status (48 bits) of the random number generator \c (drand48) 107 (cf \c seed48 ) 75 108 */ 76 109 void Get_Ranf(unsigned short seed_16v[3], int lp) … … 102 135 -- 103 136 */ 137 /*! \ingroup SysTools 138 Automatic initialisation using the present time 139 */ 104 140 void Auto_Ini_Ranf(int lp) 105 141 { … … 151 187 -- 152 188 */ 189 /*! \ingroup SysTools 190 Normal (Gaussian) random number generator (Mean=0., Sigma=1.) 191 */ 153 192 float NorRand(void) 154 193 { … … 190 229 Generation aleatoire gaussienne de centre "am" et de sigma "s". 191 230 -- 231 */ 232 /*! \ingroup SysTools 233 Normal (Gaussian) random number generator with the specified mean 234 (\c am ) and sigma (\c s ) 192 235 */ 193 236 double GauRnd(double am, double s)
Note:
See TracChangeset
for help on using the changeset viewer.