# Randomize Track Numbers

**URL:** https://community.mp3tag.de/t/randomize-track-numbers/54081
**Category:** Support
**Created:** [August 16, 2021, 12:43am UTC](https://community.mp3tag.de/t/randomize-track-numbers/54081 "2021-08-16T00:43:19Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![d2b](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/2bfe46/32.png) [@d2b](https://community.mp3tag.de/u/d2b)
#### Post date: [August 16, 2021, 12:43am UTC](https://community.mp3tag.de/t/randomize-track-numbers/54081/1 "2021-08-16T00:43:19Z")

</div>

Some media players, when used to play music from a folder, always start playing the files in sequential order by tracknumber. It would be nice to be able to re-randomize the track numbers in the folder so that the next time one wishes to play music from the folder, the order of the songs is vastly different that before.

I would like an Action Item that would allow me to randomize the TRACKNUMBER tag for a sizeable collection of FLAC files. The same Action Item should at the same time "count" the number of files and add that value to the TRACKTOTAL tag.

What would it take to write a script to do this? Is it possible?

Dennis ... aka "D2B"

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [August 16, 2021, 6:27am UTC](https://community.mp3tag.de/t/randomize-track-numbers/54081/2 "2021-08-16T06:27:59Z")

</div>

I would use the function to randomize the order in the files list:  
[2020-10-20] NEW: added option to randomize sorting via menu "View \> Sort by". ([#11763](https://community.mp3tag.de/t/11763), [#50519](https://community.mp3tag.de/t/50519))  
and then use the track numbering assistant to set a new track number.

---

<div class="post-metadata">

### Author: ![jtz54](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/c0e974/32.png) [@jtz54](https://community.mp3tag.de/u/jtz54)
#### Post date: [October 25, 2023, 8:35pm UTC](https://community.mp3tag.de/t/randomize-track-numbers/54081/3 "2023-10-25T20:35:08Z")

</div>

I would like this option added as well. Right now I use a program called "RandomFileOrder.exe" to do this but it would be nice to randomize tracks in a folder.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [October 25, 2023, 8:39pm UTC](https://community.mp3tag.de/t/randomize-track-numbers/54081/4 "2023-10-25T20:39:43Z")

</div>

The date of the change

> [@ohrenkino](#):
>
> [2020-10-20]

should show that the function is there since the year 2020

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [November 24, 2023, 8:39pm UTC](https://community.mp3tag.de/t/randomize-track-numbers/54081/5 "2023-11-24T20:39:58Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
