MathObject.random Methode

Definitie

Hiermee wordt een willekeurig getal tussen 0 en 1 gegenereerd. Met deze methode wordt geen cryptografisch veilig willekeurig getal gegenereerd.

Deze API ondersteunt de productinfrastructuur en is niet bedoeld om rechtstreeks vanuit de code te gebruiken.

public:
 static double random();
[Microsoft.JScript.JSFunction((Microsoft.JScript.JSFunctionAttributeEnum) 0, Microsoft.JScript.JSBuiltin.Math_random)]
public static double random();
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.None, Microsoft.JScript.JSBuiltin.Math_random)]
public static double random();
[<Microsoft.JScript.JSFunction((Microsoft.JScript.JSFunctionAttributeEnum) 0, Microsoft.JScript.JSBuiltin.Math_random)>]
static member random : unit -> double
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.None, Microsoft.JScript.JSBuiltin.Math_random)>]
static member random : unit -> double
Public Shared Function random () As Double

Retouren

Een getal dat groter is dan of gelijk is aan 0 en kleiner dan 1.

Kenmerken

Van toepassing op

Zie ook