here is the whole code, i shortened figure1number to just fn1:
t=table1
fn1 = t.cellNumericValue(1,1)
fn2 = t.cellNumericValue(2,1)
fn3 = t.cellNumericValue(3,1)
fn4 = t.cellNumericValue(4,1)
fn5 = t.cellNumericValue(5,1)
r = randomGenerator()
a = r.int(-10,10)
b = r.int(-10,10)
c = r.int(-10,10)
d = r.int(-10,10)
e = r.int(-10,10)
a2 = r.int(-10,10)
b2 = r.int(-10,10)
c2 = r.int(-10,10)
d2 = r.int(-10,10)
e2 = r.int(-10,10)
correct=
when (fn1 = a or fn1 =b or fn1 =c or fn1 =d or fn1 =e) and not(fn1 = fn2) and not(fn1 = fn3) and not(fn1 = fn4) and not(fn1 = fn5)
and (fn2 = a or fn2 =b or fn2 =c or fn2 =d or fn2 =e) and not(fn1 = fn2) and not(fn2 = fn3) and not(fn2 = fn4) and not(fn2 = fn5)
and (fn3 = a or fn3 =b or fn3 =c or fn3 =d or fn3 =e) and not(fn1 = fn3) and not(fn2 = fn3) and not(fn3 = fn4) and not(fn3 = fn5)
and (fn4 = a or fn4 =b or fn4 =c or fn4 =d or fn4 =e) and not(fn1 = fn4) and not(fn4 = fn3) and not(fn3 = fn4) and not(fn4 = fn5)
and (fn5 = a or fn5 =b or fn5 =c or fn5 =d or fn5 =e) and not(fn1 = fn5) and not(fn5 = fn3) and not(fn3 = fn5) and not(fn4 = fn5)
"Correct" otherwise "Not there yet, keep working"
content: "Write the domain values in the table below for the following set of coordinate:
{(${a},${a2}) (${b},${b2}) (${c},${c2}) (${d},${d2}) (${e},${e2})}
Hit enter to add more lines on the table if needed
Your Answer: ${correct}"
so essentially the note creates random coordinates, and the students have to take the domain values and list them in the table. The reason I asked that other question about avoiding duplicate numbers when randomly generating, was because of this code. I have fn1 set up to be any of the possible values, but not equal to any of the other fn variables, but if one other the other fn variables is the same, then I have a problem.