random

Summary

Generates a random number.

Signatures

Click on a signature to select it and view its documentation.

Usage

public static double random()

Returns

A random number greater than or equal to zero (0) and less than one (1). [0...1)

Description

Generates a random number greater than or equal to zero (0) and less than one (1). [0...1)

Examples

Basic Usage
1
2
3
import System;
 
Console.log(Math.random());

Share

HTML | BBCode | Direct Link