A random output

Options
I would like to know how to make an api that allows us to enter 2 or more texts and that chooses 1 randomly to give us an answer, among those recorded 

And also if it is possible to define a rate of chance that a value record appears more than another 

Comments