Class ZORandom
Inheritance
System.Object
ZORandom
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: ZO.Math
Assembly: Unity.ZeroSim.dll
Syntax
public static class ZORandom
Methods
| Improve this Doc View SourceNextGaussian(Random, Double, Double)
Generates normally distributed numbers. Each operation makes two Gaussians for the price of one, and apparently they can be cached or something for better performance, but who cares.
Declaration
public static double NextGaussian(Random random, double mean, double stddev)
Parameters
Type | Name | Description |
---|---|---|
System.Random | random | |
System.Double | mean | |
System.Double | stddev |
Returns
Type | Description |
---|---|
System.Double |
RandomPointOnUnitCircle(Single)
Declaration
public static Vector2 RandomPointOnUnitCircle(float radius)
Parameters
Type | Name | Description |
---|---|---|
System.Single | radius |
Returns
Type | Description |
---|---|
UnityEngine.Vector2 |