Ejemplo n.º 1
0
            public static int ZeroToMax(int max)
            {
                double rando = RandomeNumberGenerator.GetUniform(0, max - 1);
                int    x     = Convert.ToInt16(rando);

                return(x);
            }
Ejemplo n.º 2
0
            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);
            }