Randomly choose Operator from Array
I have an array that looks like this:
var theoperator = new array("<<", ">>", "^", "/", "+", "*")
Then I want to pass one of the operators into a routine that looks like this:
var theseed = (Math.random() * 1000)
var theseed2 = (Math.random() / Math.random())
thenum =theseed theoperatorhere (Math.random() * theseed2) * 100000
Where it says 'theoperatorhere' is obviously where I would like to pass the operator to, randomly chosen from the 'theoperator' array. How do I do this?
Thanks in advance
The name specified is not recognized as an internal or external command, operable program or batch file.