Randomization of track order

Hello!

Is there any way I could randomize the order of tracks?

I’m trying to merge about 20 music files into a single file, with a random order (because I want to surprise myself with the order they’re in).

Thanks!

Technically this could be done by randomizing the order using random.org, but:

A - I’m too lazy
B - I’d rather drag a set of 20 tracks instead of 20 sets of a single track
C - There is no reason C

I’d just use the “shuffle” option in my media player.

Hello; I too have a use for a randomizer, but not at the “shuffle tracks” level.
I understand that random.org is an external site that delivers true random numbers, but would you use this directly in an Audacity command-macro, or would you access it using Nyquist?

Nyquist is on my “todo” list.
Thanks
Chris

Why not just use some white noise.
Below 24 samples:

-0.11171
-0.22641
-0.00700
-0.22806
-0.16532
0.21460
0.16983
-0.27861
-0.19132
0.03927
0.21476
-0.04727
0.04714
0.03385
0.17884
-0.01620
0.28359
-0.16323
0.12983
-0.03799
-0.07629
0.18706
0.08226
0.04919

You can then convert to positive range only and scale to the range you want/need in Nyquist.
BTW, Nyquist also has a random number generator:

(random n) [LISP] – compute a random number between 0 and |n|-1 inclusive. If n is 0, return 0.
n – the upper bound (integer)
returns – a random number

And:

(random-seed n) [LISP] – seed the random number generator with starting seed n. If random-seed is not called, sranddev or some other initialization method will be used by default.
n – the upper bound (integer)
returns – a random number

Thank you Paul!
Chris

Pleasure.
Just keep in mind that being random, you can have a number that repeats.
You would have to add some checks to see if a number (in a given list) has already “come up”.