The "n" Package

These routines are meant to provide a simple way of generating random numbers.

Library: karma
Link With: -lkarma

Functions

n_gaussianCompute a random number with Gaussian distribution.
n_uniformCompute a random number with Uniform distribution.


Functions


double n_gaussian ()

This routine will compute a random number with a Gaussian distribution. The mean is 0.0 and the variance is 1.0

Parameters:

Returns: The number.
Multithreading Level: Unsafe


double n_uniform ()

This routine will compute a random number with a Uniform distribution. The range is from 0.0 to 1.0

Parameters:

Returns: The number.
Multithreading Level: Unsafe


Contact: Richard Gooch
Web Development: Ariel Internet Services