public static int ZeroToMax(int max) { double rando = RandomeNumberGenerator.GetUniform(0, max - 1); int x = Convert.ToInt16(rando); return(x); }
public static int East(int max) { int halLanes = Convert.ToInt16(max / 2); double rando = RandomeNumberGenerator.GetUniform(halLanes - 1); int x = halLanes + Convert.ToInt16(rando); return(x); }