update: random function for playing mode