Table of Contents

Method NextFloat

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

NextFloat(Random)

Returns a random floating-point number that is greater than or equal to 0.0f, and less than 1.0f.

public static float NextFloat(this Random random)

Parameters

random Random

The random instance.

Returns

float

A random floating-point number that is greater than or equal to 0.0f, and less than 1.0f.

NextFloat(Random, float, float)

Returns a random float in the specified range.

public static float NextFloat(this Random random, float minValue, float maxValue)

Parameters

random Random

The random instance.

minValue float

The minimum value (inclusive).

maxValue float

The maximum value (exclusive).

Returns

float

A random float in the specified range.