Random ticket code generator A lottery company wants to generate a random lottery ticket number of length 10 characters.

Write a code in any language to create such a number in which every digit comes only once for example 9354716208 in this number all integers from 0 to 9 comes only once. This number should be a random number.


The generated number should be shown on screen.
It must be able to generate all permutations of all allowable characters.
The code is required to be as small as possible (in bytes).
J (4 bytes) 

Couldn't resist.

?~10


In J, if F is dyadic , F~ x is the same as x F x.