If you were to want a random number between 0 and 10, how...


SEARCH
Notice

You are in browse mode. You must login to use MEMORY



From course:

Computer Science AQA A level

» Start this Course
(Practice similar questions for free)
Question:

If you were to want a random number between 0 and 10, how would you go about programming one?

Author: Will Parker




Answer:
Random random = new Random(); int randomNumber = random.Next(0, 10); Console.WriteLine(randomNumber);


1 answer(s) in total