Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- results = [];
- for (i = 0; i < 100000000; i++) {
- a = 1000;
- b = 1000;
- myCounter = 0;
- while (a > 0 && b > 0) {
- a -= 36 + Math.floor(Math.random() * 11);
- b -= 36 + Math.floor(Math.random() * 11);
- myCounter++;
- }
- if (results[myCounter] == undefined) {
- results[myCounter] = 1;
- } else {
- results[myCounter]++;
- }
- }
- for (count in results) {
- console.log(count + ' stuffing fluffers to kill all frats OR hippies ' + ' = ' + results[count]/i*100 + '%');
- }
- 1,000,000 instances:
- 23 stuffing fluffers to kill all frats OR hippies = 0.0121%
- 24 stuffing fluffers to kill all frats OR hippies = 29.2997%
- 25 stuffing fluffers to kill all frats OR hippies = 70.4039%
- 26 stuffing fluffers to kill all frats OR hippies = 0.2843%
- 1,000,000,000 instances:
- VM83:18 23 stuffing fluffers to kill all frats OR hippies = 0.00094292%
- VM83:18 24 stuffing fluffers to kill all frats OR hippies = 26.7680696%
- VM83:18 25 stuffing fluffers to kill all frats OR hippies = 72.8519678%
- VM83:18 26 stuffing fluffers to kill all frats OR hippies = 0.3705334%
Advertisement
Add Comment
Please, Sign In to add comment