Randomisation doubt

I think problem with the format. Try printing using %p.