26.4k views
2 votes
Describe how to use a random number generator to simulate the following performances

a) A basketball player has the ability to make 40% of his shots and takes 25 shots in one game.

b) A basketball player has the ability to make 75.2% of her free throw shots and she takes 8 free throws in a game.

User Nuway
by
3.7k points

1 Answer

7 votes

Answer:

random number generators return numbers from 0 to 1...

a) generate 25 random numbers if the number x is ≤ .4 he makes the shot

otherwise he misses

a) generate 8 random numbers if the number x is ≤ .752 she makes the shot otherwise it is a miss

otherwise he misses

Explanation:

User Adrian Dunston
by
4.7k points