Randomize! Otter for Math

ENHYDRA is responsible for calculations, and for allowing us to write a question in a "random" way.

Randomize!

Every time you have a variable in your question and answers, make it random. Instead of writing a question like

10 + 10 = ?

we can say, OK, we want to have the sum of two numbers. So let's have a and b, two numbers that are both randomly chosen between 5 and 20

 

###a,b:r(5,20)###

###a,b:r(5,20)###stuff between ###s is sent to ENHYDRA, the brain behind Otter. It will be swapped out, and if there is some result (like a number) it will be shown to the user. This statement above just set a and b to be two numbers randomly between 5 and 20.

IMPORTANT: keep in mind that even though ###a,b:r(5,20)### sets a and b to be two numbers randomly between 5 and 20, 5 will be included in the range, but 20 WILL NOT.

Our question at this point looks like this:
###a,b:r(5,20)###

Now we write the rest:

###a,b:r(5,20)###

What is ###a### + ###b###?

And the user will see, for example: What is 6 + 8?

Every time you have a name, a last name, a city, a school subject in your question, make it random. Use functions that choose random names, weekdays, and school subjects, and replace the actual name, weekday, or school subject with it. See all of the random meanings available for Otter in the table below.

Description Function Possible Output
Generates a random worded number from 10 to 19 ###10-19### twelve
Generates a random animal ###animal### tiger
Generates a random big distance ###bigdistance### km
Generates a random flying bird ###bird### crane
Generates a random capital letter ###capletter### A, F, W
Generates a random city ###city### London
Generates a random color  ###color### yellow
Generates a random worded number from 1 to 9 ###digit### eight
Generates a random day ###day### Sunday
Generates a random flower ###flower### rose
Generates a random food item ###fooditem### scone
Generates a random last name ###lastname### Hughes
Generates a random (small) letter* ###letter###

a, g, p

 

*except o and l because of their similarity with numbers 1 and 0

Generates a random name ###name### John
Generates a random girl's name ###namegirl### Susan
Generates a random boy's name ###nameboy### Harry
Generates a random school subject ###schoolsubject### Literature
Generates a random sport ###sport### Cricket
Generates a random worded number from twenty to ninety ###tens### fifty
Generates a random tree ###tree### hazel
Generates a random writing tool ###writedown### laptop

 

PLEASE NOTE THAT if you want to generate two identical words, say, days of week, use numbers. ###day1###, ###day2###, ###day1### will result in (one of the possible variations) 'Monday, Tuesday, Monday', where the first and the third day will be the same, and the second day will be randomized separately. 

If there is a category of word that you feel you use often and could be useful to have a code for, please signal the admins. It is easy to add them. Submit the proposal as a keyword, and a comma separated list of values you would like it to randomly pick from.

To see all the available functions, see the cheatsheet. But to really get to grips with it, you'd better read the manual! It takes a while but is worth it.