static float Float( System.Random self )
static float Float( System.Random self, float min, float max )
static float Float( System.Random self, float max )

robot_2Generated
code_blocksInput

Description

The Float method is an extension method for the System.Random class, provided by the Sandbox.SandboxSystemExtensions class. It generates a random floating-point number between 0.0 (inclusive) and 1.0 (exclusive).

Usage

To use the Float method, you need to have an instance of System.Random. This method extends the Random class, allowing you to call it directly on any Random object.

Example

// Example usage of the Float method
Random random = new Random();
float randomFloat = random.Float();
// randomFloat will be a value between 0.0 and 1.0