Hello everyone....

I am trying to generate a random unique array which would have in it all the whole numbers up to n.

For an example.

If n=10

Then it may give the following output

9

5

4

2

3

1

0

8

6

7

Can it be done without using the random function in loops?