Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. percentage = 0.7;
  2.  
  3. if (//however you want to cook it//) {
  4. percentage = 0.2;
  5. }
  6.  
  7. //When you eat the food
  8.  
  9. chance = irandomrange(0, 1);
  10. if (chance < percentage) {
  11. salmonella = true;
  12. } else {
  13. salmonella = false;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement