+ 1

Random in c#??

Can soneone explain me the usage of random and "".rnd? I got really confused when i got than in a quiz and always mess up the output. How does it work?

17th Dec 2019, 6:34 PM
Máté Subicz
Máté Subicz - avatar
3 Antworten
+ 3
https://code.sololearn.com/cu2HeOviPSHN/?ref=app The way random works is confusing. Rnd.next gives you a new value The minimum is inclusivr The maximum is exclusive
17th Dec 2019, 6:42 PM
sneeze
sneeze - avatar
+ 1
Thank you!! Never got that, u made my day! 😉
17th Dec 2019, 6:56 PM
Máté Subicz
Máté Subicz - avatar
+ 1
Keep asking, keep coding
17th Dec 2019, 6:57 PM
sneeze
sneeze - avatar