dimanche 21 décembre 2014

Generate random with certain total, member, and range

What we have is (assuming)


Total : 1500

Member allowed : 15

Range : 100 - 200


So from this information we have to build 15 number between 100 and 200 and the total should be 1500


what is the best way to build this in java?





Aucun commentaire:

Enregistrer un commentaire