App_random: do minor code clean-up