A number is generated randomly, and stored in a global variable. imagelessCaptcha generates the number as a phrase that asks the user to write it as a number, as shown below. When the form is submitted, it is validated by checking if the answer and the number match.