fixed rand method