update get random elements