samedi 29 août 2020

Random probability of an object with percent

I have a list in percentages:

  1. pear - 0.01%
  2. apple - 0.01%
  3. orange - 0.01%
  4. bread - 0.12%

I don't understand, how to make RND from 100% in java with a possible drop of one item.




Aucun commentaire:

Enregistrer un commentaire