I'd suggest assigning the question in PHP and storing which question you asked in a $_SESSION
variable. That way when they refresh the page you can show them the same question until they answer it.
UPDATE
There is a caveat to this, if your user really is a smarty, they can delete their cookies and refresh the page, which would create a new session for them since session identifiers are saved as a cookie in PHP (by default).