Click or drag to resize

RandomExtensions Class

This class implements extension methods for the System.Random class. The extension methods generate pseudo-random distributed numbers for types other than double and int32.
Inheritance Hierarchy
SystemObject
  Altaxo.Calc.RandomRandomExtensions

Namespace: Altaxo.Calc.Random
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static class RandomExtensions

The RandomExtensions type exposes the following members.

Methods
 NameDescription
Public Extension MethodNextBigIntegerSequence Returns an infinite sequence of uniform random BigInteger within the specified range.
Public Extension MethodNextBoolean Returns a random boolean.
Public Extension MethodNextBytes Returns an array of uniform random bytes.
Public Extension MethodNextDecimal Returns a nonnegative decimal floating point random number less than 1.0.
Public Extension MethodNextDoubles(Random, Double) Fills an array with uniform random numbers greater than or equal to 0.0 and less than 1.0.
Public Extension MethodNextDoubles(Random, Int32) Returns an array of uniform random numbers greater than or equal to 0.0 and less than 1.0.
Public Extension MethodNextDoubleSequence Returns an infinite sequence of uniform random numbers greater than or equal to 0.0 and less than 1.0.
Public Extension MethodNextFullRangeInt32 Returns a random number of the full Int32 range.
Public Extension MethodNextFullRangeInt64 Returns a random number of the full Int64 range.
Public Extension MethodNextInt32s(Random, Int32) Fills an array with uniform random 32-bit signed integers greater than or equal to zero and less than MaxValue.
Public Extension MethodNextInt32s(Random, Int32, Int32, Int32) Fills an array with uniform random 32-bit signed integers within the specified range.
Public Extension MethodNextInt32Sequence Returns an infinite sequence of uniform random 32-bit signed integers within the specified range.
Public Extension MethodNextInt64 Returns a nonnegative random number less than MaxValue.
Top
See Also