Beispiel #1
0
        public static string GetPosition()
        {
            switch (AnimatorRandom.Rand.Next(3))
            {
            case 0: return(POSITION_PREFIXES.RandomElement() + " " + POSITIONS.RandomElement());

            case 1: return(POSITION_AREAS.RandomElement() + " " + POSITIONS.RandomElement());

            case 2: return(POSITION_PREFIXES.RandomElement() + " " + POSITION_AREAS.RandomElement() + " " + POSITIONS.RandomElement());

            default: throw new ApplicationException();
            }
        }
Beispiel #2
0
        public static string Position()
        {
            switch (RandomNumberGenerator.Int(3))
            {
            case 0: return(POSITION_PREFIXES.RandPick() + " " + POSITIONS.RandPick());

            case 1: return(POSITION_AREAS.RandPick() + " " + POSITIONS.RandPick());

            case 2: return(POSITION_PREFIXES.RandPick() + " " + POSITION_AREAS.RandPick() + " " + POSITIONS.RandPick());

            default: throw new InvalidOperationException();
            }
        }
Beispiel #3
0
        public static string GetPosition()
        {
            var Rand = FakerRandom.Rand;

            switch (Rand.Next(3))
            {
            case 0: return(POSITION_PREFIXES.Rand() + " " + POSITIONS.Rand());

            case 1: return(POSITION_AREAS.Rand() + " " + POSITIONS.Rand());

            case 2: return(POSITION_PREFIXES.Rand() + " " + POSITION_AREAS.Rand() + " " + POSITIONS.Rand());

            default: throw new Exception();
            }
        }