I am looking for a simple random number generator that fills a given amount of slots.<p>Say it is initialized with "size=5" then it might output:<p>3,5,2,1,4<p>Is there something like this?<p>It does not need much statistical resemblence to randomness. Just look kind of random to the eye. And the code should be short. A few lines of Javascript or so.<p>Maybe one approach might be to just loop through the sequence (1,2,3,4,5) and xor the number with some other number? Maybe with 0101010...?