Nez.Portable/Math/Random.cs
/// <summary>
/// randomly returns one of the given values
/// </summary>
/// <param name="first">First.</param>
/// <param name="second">Second.</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)
        {
            if (nextInt(2) == 0)
                return first;
            return second;
        }
public static T choose < T > ( T first , T second ) { if ( nextInt ( 2 ) == 0 ) return first ; return second ; }
randomly returns one of the given values
randomly returns one of the given values
first
T
None
second
T
None
typeparam
The 1st type parameter.
The 1st type parameter .