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.