class Random
Represents a pseudo-random number generator, which is a device that produces a sequence of numbers that meet certain statistical requirements for randomness.
public Random( int Seed )
Initializes a new instance of the class, using the specified seed value.
SeedA number used to calculate a starting value for the pseudo-random number sequence. If a negative number is specified, the absolute value of the number is used.
public int Next( int maxValue )
Returns a non-negative random integer that is less than the specified maximum.
maxValueThe exclusive upper bound of the random number to be generated. must be greater than or equal to 0.- Returns A 32-bit signed integer that is greater than or equal to 0, and less than ; that is, the range of return values ordinarily includes 0 but not . However, if equals 0, is returned.
public int Next( int minValue, int maxValue )
Returns a random integer that is within a specified range.
minValueThe inclusive lower bound of the random number returned.maxValueThe exclusive upper bound of the random number returned. must be greater than or equal to .- Returns A 32-bit signed integer greater than or equal to and less than ; that is, the range of return values includes but not . If equals , is returned.
public void NextBytes( byte[] buffer )
Fills the elements of a specified array of bytes with random numbers.
bufferAn array of bytes to contain random numbers.
public int GetHashCode( )
😔 No documentation found.
public bool Equals( object obj )
😔 No documentation found.
public string ToString( )
😔 No documentation found.
public Type GetType( )
😔 No documentation found.
public void Shuffle( Span<T> values )
😔 No documentation found.
public void Shuffle( T[] values )
😔 No documentation found.
public T[] GetItems( ReadOnlySpan<T> choices, int length )
😔 No documentation found.
public T[] GetItems( T[] choices, int length )
😔 No documentation found.
public void NextBytes( Span<byte> buffer )
😔 No documentation found.
public Random( )
😔 No documentation found.
public double NextDouble( )
😔 No documentation found.
public float NextSingle( )
😔 No documentation found.
public long NextInt64( long minValue, long maxValue )
😔 No documentation found.
public long NextInt64( long maxValue )
😔 No documentation found.
public long NextInt64( )
😔 No documentation found.
public int Next( )
😔 No documentation found.
public void GetItems( ReadOnlySpan<T> choices, Span<T> destination )
😔 No documentation found.
public static Random Shared { get; }
😔 No documentation found.