예제 #1
0
        public void GenerateRandomNumber(int minValue, int maxValue, IRamMemory ram)
        {
            Random random = new Random();
            int randomNumber = random.Next(minValue, maxValue);

            ram.SaveInteger(randomNumber);
        }
예제 #2
0
 private void SaveData(int numberToStore, IRamMemory ram)
 {
     ram.SaveInteger(numberToStore);
 }