tw custom entry handler (get random number)