コード例 #1
0
        /// dado tirado por el jugador
        public int  throwDice()
        {
            GenerateRandom generateNumber = new GenerateRandom();

            DiceNumber = generateNumber.generateRandomNumbers();
            return(DiceNumber);
        }
コード例 #2
0
        public int  generateRandomNumbers()
        {
            int numberSend = 0;

            int[] array = new int[6];

            GenerateRandom objects = new GenerateRandom();

            array = objects.generateNonRepeatedNumbers(array);

            for (int i = 0; i < array.Length; i++)
            {
                Console.WriteLine(array[i]);
                numberSend = array[5];
            }
            return(numberSend);
        }