In c#, how would I generate 3 random numbers [50,60] and use the methods of the math library to find the smallest number? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

In c#, how would I generate 3 random numbers [50,60] and use the methods of the math library to find the smallest number?

Needs to use math library

5th Sep 2017, 3:07 AM
Hakeem Thomas
Hakeem Thomas - avatar
1 Answer
0
My english isn't very good. You can use for(int i=0;i<3;i++) ale generate 3 random numbers then you can use System.Math.Min(System.Math.Min(n1,n2),n3)
17th Sep 2017, 5:02 PM
Kacper Piotrowski
Kacper Piotrowski - avatar