Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- percentage = 0.7;
- if (//however you want to cook it//) {
- percentage = 0.2;
- }
- //When you eat the food
- chance = irandomrange(0, 1);
- if (chance < percentage) {
- salmonella = true;
- } else {
- salmonella = false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement