Class RandomExtensions
Inheritance
System.Object
RandomExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: InsaneScatterbrain.Extensions
Syntax
public static class RandomExtensions
Methods
Next(Random, Single, Single)
Returns a random float an the range between min. and max.
Declaration
public static float Next(this Random random, float min, float max)
Parameters
Type | Name | Description |
---|---|---|
System.Random | random | The random instance. |
System.Single | min | The min. value. |
System.Single | max | The max. value. |
Returns
Type | Description |
---|---|
System.Single | A random float between min and max |