A number is chosen at random from 10 to 30 both inclusive. What is the…