I want to be able to randomly generate a number with small chance and otherways generate default number, for example, a character has 120 attack points with a 30% chance to hit critical but that critical damage deals 20% more damage which makes the damage range from 120 to 144
So if I click a button or enter a command to fight, theres 30% chance for program to generate a number from 120 to 144 but theres 70% chance that program gives only 120.