How do I generate random integers within a specific range and condition in Java?? Hello all . boldI need to generate random values between 0-4 with condition. like i want to generate 100 values between 0-4 but i need the zeros to 40% of the total number and the ones to be 20% etc.bold Any ideas to do that in simple way ? '''Thanks for help.'''
Aucun commentaire:
Enregistrer un commentaire