get random reason and ajax