static System.Double Double( System.Random self, System.Double min, System.Double max )
static System.Double Double( System.Random self, System.Double max )

robot_2Generated
code_blocksInput

Description

The Double method is an extension method for the System.Random class, provided by the Sandbox.SandboxSystemExtensions class. It generates a random double-precision floating-point number within a specified range.

Usage

To use the Double 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. You must specify the minimum and maximum bounds for the random number generation.

Ensure that the min parameter is less than the max parameter to avoid runtime errors.

Example

// Example usage of the Double extension method
Random random = new Random();
double randomValue = random.Double(1.0, 10.0);
// randomValue will be a double between 1.0 and 10.0