Namespaces

Types

Type AbstractRandomNumberGenerator

Namespace MathNet.Numerics.Random

Parent Random

Abstract class for random number generators. This class introduces a layer between Randomand the Math.Net Numerics random number generators to provide thread safety.

Methods

Public instance methods

void NextBytes(Byte[] buffer)

Fills the elements of a specified array of bytes with random numbers.
Parameters
Byte[] buffer An array of bytes to contain random numbers.

double NextDouble()

Parameters
return double

Double[] NextDouble(int n)

Returns an array of uniformly distributed random doubles in the interval [0.0,1.0].
Parameters
return Double[] An array of uniformly distributed random doubles in the interval [0.0,1.0].
int n The size of the array.