var rest = [
"No touching",
"Hands on head",
"Hands up high in the air",
"Hands behind the head",
"Sit on your hands"
]
var restRandom = rest[Math.floor(Math.random()*rest.length)]
var rest = [
"No touching",
"Hands on head",
"Hands up high in the air",
"Hands behind the head",
"Sit on your hands"
]
var restRandom = rest[Math.floor(Math.random()*rest.length)]
Just tested it out and multiple invocation of "rest[Math.floor(Math.random()*rest.length)]" provides all the results.
Just to be sure, you are invoking "restRandom = rest[Math.floor(Math.random()*rest.length)]" everytime you expect a new result, right?