added Randomnumber function