An onion with an unknown number of layers contains a maggot at an unknown layer. Write a recursive function which will determine the depth of the maggot using the probability of 0.1 of a maggot being at a particular layer and a random number generator.