The swrngseqgen utility can be used to generate a random sequence of non-repeating numbers

The random sequence is based on the true random numbers generated by the SwiftRNG, and is simple to generate using the swrngseqgen utility. For example, you could use the following command to generate a sequence of unique random numbers between 1 and 10:

sudo swrngseqgen 0 1 10

This could result in the following output:

-- Beginning of random sequence --
2
4
8
7
6
1
10
5
9
3
-- Ending of random sequence --

To generate a sequence of unique random numbers between 1 and 50 and only show the first 6 numbers:

sudo swrngseqgen 0 1 50 6

This could result in the following output:

-- Beginning of random sequence --
37
45
31
17
19
28
-- Ending of random sequence --

To generate five numbers between 1 and 5 and repeat 2 times:

sudo swrngseqgen 0 1 5 5 2

This could result in the following output:

-- Beginning of random sequence --
3
4
1
5
2
-- Ending of random sequence --

-- Beginning of random sequence --
4
2
5
1
3
-- Ending of random sequence --