Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float meat_boner = 4.7019;
- int times = 500000;
- int meat_drop;
- int meat_remaining;
- int turn_counter;
- int total_turns_sans;
- int total_turns_with;
- int rround(float butts){
- float remain = butts%1;
- if(remain * 100 <= random(100)){
- return floor(butts);
- }
- else{
- return floor(butts+1);
- }
- }
- //nuns without singing along.
- for i from 1 to times{
- meat_remaining = 100000;
- turn_counter = 0;
- while(meat_remaining > 0){
- turn_counter++;
- meat_remaining -= rround((800 + random(201) + random(201))*(1+meat_boner));
- }
- total_turns_sans += turn_counter;
- if(i%10000 == 0){
- print("simulations+=10k.");
- }
- }
- //nuns with singing along and the +30% meat boner from boombox.
- for i from 1 to times{
- meat_remaining = 100000;
- turn_counter = 0;
- while(meat_remaining > 0){
- turn_counter++;
- meat_remaining -= rround((820 + random(201) + random(201) + random(11))*(meat_boner+1.3));
- }
- total_turns_with += turn_counter;
- if(i%10000 == 0){
- print("simulations+=10k.");
- }
- }
- float EV_sans = (total_turns_sans.to_float()) / (times.to_float());
- float EV_with = (total_turns_with.to_float()) / (times.to_float());
- print("EV with singing: "+EV_with.to_string());
- print("EV sans singing: "+EV_sans.to_string());
Advertisement
Add Comment
Please, Sign In to add comment