Click or drag to resize

UnitTestFixtureGetRandom(Double, Int32) Method

Gets a random number.

Namespace: InnerDrive.Core
Assembly: InnerDrive.Core (in InnerDrive.Core.dll) Version: 5.0.8475.0
Syntax
C#
protected static double GetRandom(
	double maxValue,
	int decimals
)

Parameters

maxValue  Double
The maximum value of the random number.
decimals  Int32
The number of decimal places to use to round the random number.

Return Value

Double
A random Double between 0 and maxValue. rounded to decimals places.
Remarks
The randomize function is reseeded with a value guaranteed to be different than the last time it was called. However, the random number is not cryptographically strong.
See Also