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
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;...