GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LCBT / V1-1-0
Constituent: ssrsimOld     Tag: mv2304
#include "src/RND.h"
#include <math.h>
Include dependency graph for RND.c:
Functions | |
unsigned int | RND__lc0_args (unsigned int prv, unsigned int a, unsigned int c) |
Produces a random number in the range 0 - 2**32-1 using a linear congruent method. | |
void | RND_lc0_init (RND_lc0 *ctx, unsigned int seed) |
Init. | |
unsigned int | RND_lc0_gen (RND_lc0 *ctx) |
Produces a random number in the range 0 - 2**32-1 using a linear congruent method. | |
int | RND_normal_lc0_gen (RND_normal_lc0 *ctx) |
Produces a normal distribution. |
|
Produces a random number in the range 0 - 2**32-1 using a linear congruent method.
r = RND__lc0_args (...) % 256; To produce a number from 0 - 255. Rather do
r = RND__lco_args (...) >> 24; |
|
Produces a random number in the range 0 - 2**32-1 using a linear congruent method.
r = RND__lc0_args (...) % 256; To produce a number from 0 - 255. Rather do
r = RND__lco_args (...) >> 24; |
Here is the call graph for this function:
|
Init.
|
|
Produces a normal distribution.
|
Here is the call graph for this function: