AIML has a random and set/get tags you could use for this. See, https://www.botlibre.com/manual-aiml.jsp You may also consider using Self for this, as it has more random functions. See, https://www.botlibre.com/manual-self.jsp