subject

1) dice probability distribution simulation (30 points) function name: sim_dice parameters: none return: a dictionary with 6 elements: keys are integers 1 to 6, values are corresponding number of occurrence description: you roll the dice 10,000 times. each time you get one of six sides with a probability of 1/6. you need to generate the total number of occurrence for each side, store them in a dictionary as a returned value. hint: 1. this rolling is equal to choosing a number in [0,1) while dividing it into 6 sections: [0, 1/6), [1/6, 2/6), [2/6, 3/6), [3/6, 4/6), [4/6, 5/6), [5/6, 1) 2. you need to use random() to randomly generate a floating number between 0 and 1

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 19:20, mahaleyrenee1195
How might the success of your campaign be affected if you haven’t carefully completed all field data or if you accidentally insert the wrong merge field in the document?
Answers: 2
image
Computers and Technology, 23.06.2019 13:30, powellmj9216
Spoons are designed to be used for: spring hammering. applying body filler. identifying high and low spots. sanding highly formed areas.
Answers: 3
image
Computers and Technology, 25.06.2019 12:00, HotWheels162000
The print command in the powerpoint is found in the? file tab home tab design tab review tab
Answers: 1
image
Computers and Technology, 25.06.2019 15:40, gd9075
Provide the format and assembly language instruction for the following hex values: address 1000: 13 address 1001: 01 address 1002: 81 address 1003: fe
Answers: 2
You know the right answer?
1) dice probability distribution simulation (30 points) function name: sim_dice parameters: none r...

Questions in other subjects: