lundi 16 décembre 2019

Uneven Distribution in rand() ( C language )


I wanted to see if there is any way to generate random numbers with uneven distribution which I would like to customize.
for example:
In 100 generated numbers I would like to have :
10 A
20 B
30 C
10 D
15 E
5 F




Aucun commentaire:

Enregistrer un commentaire