random num program works