Nez.Portable/Math/Random.cs
/// <summary>
/// randomly returns one of the given values
/// </summary>
/// <param name="first">First.</param>
/// <param name="second">Second.</param>
/// <param name="third">Third.</param>
/// <typeparam name="T">The 1st type parameter.</typeparam>
randomly returns one of the given values
randomly returns one of the given values
public static T choose<T>(T first, T second, T third)
        {
            switch (nextInt(3))
            {
                case 0:
                    return first;
                case 1:
                    return second;
                default:
                    return third;
            }
        }
public static T choose < T > ( T first , T second , T third ) { switch ( nextInt ( 3 ) ) { case 0 : return first ; case 1 : return second ; default : return third ; } }
randomly returns one of the given values
randomly returns one of the given values
first
T
None
second
T
None
third
T
None
typeparam
The 1st type parameter.
The 1st type parameter .