Using a list

Using a list

by Nick Stroobants -
Number of replies: 1

Hi!

I would like to make an exercise where students have to add up polynomes.

I know that I can use the function 'random' to appoint variable integers. But is there also a way to create random letters?

For example:

(ab3+2a2-4) + (-4ab3+ac2), where the letters are created in a random way.



Average of ratings: -
In reply to Nick Stroobants

Re: Using a list

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Is this a question about the STACK question type?

You can use the rand function to pick something from a list, e.g.

var: rand([x,y,z,r,t,s]);