modified user class for reflecting rand function