Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 2.9 KB

MonoRandom.md

File metadata and controls

34 lines (29 loc) · 2.9 KB

MonoRandom Class

A pseudo-random number generator that is primarily used to get multiple platforms to share the same random number generator.

public class MonoRandom :
KeepCoding.ILog

Inheritance System.Object 🡒 MonoRandom

Implements ILog

Constructors
MonoRandom() Initializes a new instance of the MonoRandom class, using a time-dependent default seed value.
MonoRandom(int) Initializes a new instance of the System.Random class, using the specified seed value.
Properties
Seed The seed used for the randomization.
Methods
Log<T>(T, LogType) Logs message, but formats it to be compliant with the Logfile Analyzer.
Log<T>(T, object[]) Logs multiple entries, but formats it to be compliant with the Logfile Analyzer.
LogMultiple(string[]) Logs multiple entries to the console.
Next(bool) Returns a nonnegative random number.
Next(int, bool) Returns a nonnegative random number less than the specified maximum.
Next(int, int, bool) Returns a random number within a specified range.
NextBytes(byte[], bool) Fills the elements of a specified array of bytes with random numbers.
NextDouble(bool) Returns a random number between 0.0 and 1.0.
Sample(bool) Returns a random number between 0.0 and 1.0.
Shuffle<T>(T, bool) Shuffles a list using an in-place algorithm; the original list is modified.