Random Number Generation

Updated on May 5, 2017 in [C] Intermediate
Share on Facebook0Tweet about this on Twitter0Share on Google+0Share on Reddit0
1 on May 5, 2017

I wan to create a random number generator with
● Input: ​[1.0, 2.0]​

and as output a console print  ​0​ with probability ​⅓​ and ​1​ with probability ⅔
How can i do that

  • Liked by
Reply
0 on May 5, 2017

We are not here to make your homework 😉

  • Liked by
Reply
Cancel