corretced random number error on loot system