turtle.random

Translation of SimpleRNG. Removed the builtin RNG to use std.random, but kept the distribution functions. John D. Cook confirmed this code as public domain.

Public Imports

std.random
public import std.random;

Members

Functions

randBeta
double randBeta(double a, double b)
randCauchy
double randCauchy(double median, double scale)
randChiSquare
double randChiSquare(double degreesOfFreedom)
randExponential
double randExponential(double mean)
randGamma
double randGamma(double shape, double scale)
randInverseGamma
double randInverseGamma(double shape, double scale)
randLaplace
double randLaplace(double mean, double scale)
randLogNormal
double randLogNormal(double mu, double sigma)
randNormal
double randNormal(double mean, double standardDeviation)
randPoisson
int randPoisson(double lambda)
randStudentT
double randStudentT(double degreesOfFreedom)
randWeibull
double randWeibull(double shape, double scale)

See Also

Meta

Authors

John D. Cook.