I got a holiday homework in my maths journal to roll a dice 500 times to check the probability.Thinking for some time, I made a code to do it for me. I Think i should share the steps so that all my readers out there can do it easily.

Please use only a computer to do this.

Step 1: Go to http://bit.ly/2IrSj2v (Opens in a New Tab) and fill in the details as follows: Generate: 500, Between: 1, and : 6, Format in : 500. (Note: The data is based on the homework I’ve got. You can change it according to your need!)

Step 2: Copy the text and go to http://bit.ly/2AMmBJc (Opens In A New Tab) and paste your data by deleting the text in “” in the first line test_str = “1 2 ….. as done in the below image:

Step 3 : Press the Play Button which looks as follows:

Now Copy the data with the commas and proceed to the next step.

Step 4: Now Go to http://bit.ly/2MoPxMI (Opens In New Tab) and Paste the data between [ and ] in the first line after arr= as shown in the image below.

Step 5: Now Press the Play Button and take your data!

I hope this bog post would help everyone to make their homework easier! Please share!

Leave a comment