add getRandomElements (not testet yet)