The following code in Listing 1 returns a random number.
- // Generate a random number
- Random random = new Random();
- // Any random integer
- int num = random.Next();
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mahesh ChandPosted Sep 9, 2018, 1:14 PM