A basic implementation about picking number. Investigating on how to
improve to constant memory.