Class RandomExtensions
Inheritance
System.Object
RandomExtensions
Syntax
public static class RandomExtensions : object
Methods
NextColor(System.Random)
Declaration
public static Color32 NextColor(this System.Random rng)
Parameters
Type |
Name |
Description |
System.Random |
rng |
|
Returns
NextDouble(System.Random, Double, Double)
Declaration
public static double NextDouble(this System.Random rng, double minValue, double maxValue)
Parameters
Type |
Name |
Description |
System.Random |
rng |
|
System.Double |
minValue |
|
System.Double |
maxValue |
|
Returns
Type |
Description |
System.Double |
|
NextFloat(System.Random)
Declaration
public static float NextFloat(this System.Random rng)
Parameters
Type |
Name |
Description |
System.Random |
rng |
|
Returns
Type |
Description |
System.Single |
|
NextFloat(System.Random, Single, Single)
Declaration
public static float NextFloat(this System.Random rng, float minValue, float maxValue)
Parameters
Type |
Name |
Description |
System.Random |
rng |
|
System.Single |
minValue |
|
System.Single |
maxValue |
|
Returns
Type |
Description |
System.Single |
|