[RPG] Small tweak in getRandom