Update random numbers example, make validateInput use async functionality