Forming a random permutation
steps will be displayed here
A random position within an array is chosen and then removed.
Key commands are:
r=Math.floor(numq.length*Math.random()); numq.splice(r,1)