Photomechanics API
RandomExtensions Class Reference

Extensions for Random. More...

Static Public Member Functions

static Double NextDouble (this Random random, Double minValue, Double maxValue)
 Convenient NextDouble with min/max parameters. More...
 
static TElement RandomElement< TElement > (this Random random, IReadOnlyList< TElement > elements)
 Returns random element of an array.
 

Detailed Description

Extensions for Random.

Member Function Documentation

◆ NextDouble()

static Double RandomExtensions.NextDouble ( this Random  random,
Double  minValue,
Double  maxValue 
)
static

Convenient NextDouble with min/max parameters.

Exceptions
ArgumentOutOfRangeExceptionOccurs when minValue > maxValue