Generates leves and random numbers