-- Click the green flag twice -- Forever runs the program forever and run # runs it for a specified number of times, this processes it quicker. The max is 200000 because of list size limits, use turbo mode -- This is built off of the simple program Bizz Buzz. The program gets a number, and if it is divisible by 3 then it outputs 'Bizz' and if it is divisible by 7 then it outputs a 'Buzz.' If it is divisible by 7 and 3 (same as a multiple of 21) then it outputs 'Bizz Buzz.' Finally, if it is not divisible by 3 or 7 then it outputs the number it was inputted. This program picks a random number from 1 to 500 and runs it through the program. It then creates a pie chart and a X/Y line graph based on the results, in addition to keeping track of the total numbers it has generated. This helps represent the law of large numbers because over time the graph flatlines. -- Flatline equations: (This is what it should flatline to over time, rounded to the nearest whole percent.) Bizz: (1/3)(6/7) = 28% Buzz: (1/7)(2/3) = 10% Bizz Buzz: (1/7)(1/3) = 5% Nothing: 100-(28+10+5) = 57% -- Graphs drawn by pen
*Percents may not add up to 100 because of rounding* I recommend turbo mode (hold shift and click the green flag, do the same to turn it off) if you want to run it at full speed. Use the speed slider to increase/decrease the speed at which it runs. For me it lags a bunch when it gets to the end of the graph just wait a bit it will reset Follow @Aimonster and @cs3839192