WeBWorK Problems

random numbers in arrays

Re: random numbers in arrays

by Alex Jordan -
Number of replies: 0

A tangential observation. I've been using list_random() more since I learned about the perl .. operator. So instead of:

(-1)**(random(1,20,1)) * random(5,20,1)

you could have:

list_random(-20..-5,5..20)