0

could anyone help to make this code-

to print single numbers of these numbers 1,2,3,4,5 randomly with their different probability 50%,20%,15%,10%,5% continuously

7th Aug 2016, 11:11 AM
Lekhraj Singh
Lekhraj Singh - avatar
1 Réponse
+ 1
If you don't want to use arrays, you can use if- else if- else. if (number <50)cout <<"1"<<endl;...
7th Aug 2016, 2:34 PM
Jeviczki Tamás
Jeviczki Tamás - avatar