jugger
1
I just create a script as written as below
$(eval var r=Math.random();r+" and "+r;)
expect result : 83 and 32
actual result shows : 13 and 13
My quetion is how to produce 2 different random number in a line. because as showing in the script, it only run the Math.random() one time only.
night
2
You would need to run Math.random()
twice.
$(eval `${Math.random()} and ${Math.random()}`)
jugger
3
I had tried this way, but I would like to know if there have any alternative ways?
night
4
There’s not actually. You would have to run it twice like I have to get two different numbers.
system
Closed
5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.