Possible Duplicate:
How to randomize a javascript array?
Hello guys I know how to generate a random value with Math.random()
in Javascript, but can you tell me how to mix numbers randomly?
For example I have numbers 1,2,3,4,5,6,7,8,9,10 how to mix it randmoly like this: 2,8,9,1... so each number should be used only once