So the problem is to random numbers range from 0-100 ( 100%) and 30% has to be red , 20% has to be blue and 50% is green . I understand the concept but can’t figure out the math for if statement to the percentages .
Aucun commentaire:
Enregistrer un commentaire