Random Members
The Random type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() |
Random()()()() |
Initializes a new instance of the Random class, using a time-dependent default seed value.
|
![]() |
Random(Int32) |
nitializes a new instance of the Random class, using the specified seed value.
|
Methods
Name | Description | |
---|---|---|
![]() |
Next()()()() |
Returns a non-negative random integer.
|
![]() |
Next(Int32, Int32) |
Returns a random integer that is within a specified range.
|
![]() |
Next(Int32) |
Returns a non-negative random integer that is less than the specified maximum.
|
![]() |
NextBytes |
Fills the elements of a specified array of bytes with random numbers.
|
![]() |
NextDouble |
Returns a random floating-point number that is greater than or equal to 0.0, and less than 1.0.
|