MathObject::random Method ()

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Generates a random number between 0 and 1. This method does not generate a cryptographically secure random number.

Namespace:   Microsoft.JScript
Assembly:  Microsoft.JScript (in Microsoft.JScript.dll)

public:
[JSFunctionAttribute(JSFunctionAttributeEnum::None, JSBuiltin::Math_random)]
static double random()

Return Value

Type: System::Double

A number that is greater than or equal to 0, and less than 1.

.NET Framework
Available since 1.1
Return to top
Show: