fix client rand