Particles.Range <T>
Description: Defines a range that is used to describe a range of values.
Implements: EndGate.ICloneable
Constructors
Range <T> (value)
Creates a new instance of the Range object.
value: T
The min and max value of the range.
Range <T> (min, max)
Creates a new instance of the Range object.
min: T
The initial min value of the range.
max: T
The initial max value of the range.
Fields
Min: T
Gets or sets the minimum value of the range.
Max: T
Gets or sets the maximum value of the range.
Methods
Clone()
Returns an identical copy of this range.
(Static) RandomNumber()
Returns a random number between range.Min and range.Max.
(Static) RandomTimeSpan()
Returns a random TimeSpan between range.Min and range.Max.
Examples
There's currently no example available for this page. If you'd like to suggest one send me an containing a description, code, and link to the page for the suggested example. As a thanks I'll associate the code snippet with your name directly below the example if approved.