modified method name getRandomId to be more appropiate