Add method example for the random generator