Are you sure you want to treat your mp3 like that ? There is shuffle option in every player around.
In case your situation is exotic, you can quickly make plugin that makes random name. I was free to make one for you:
Random.ahk
Code:
; Globals
; ------------------------------------
; #Res - result
;
; #fn - file name without extension
; #fp - file path
; #fe - file extension
; #fd - file directory
; #no - file number in the list
; #flag - prev|real
;
; #1 - field or param1 if GetFields returns *
; #2 - unit or param2 if GetFields returns *
; #3 - contains entire user string, if GetFields returns *
;
; #tmp - temporary placeholder (you can also use any of the above unused globals)
;======================================================================================
Random:
ifEqual, #1, , SetEnv, #1, 3
ifEqual, #2, , SetEnv, #2, 10
#Res := RandomVar(#1, #2, "alpha")
return
RandomVar(p_MinLength,p_MaxLength,p_Type="",p_MinAsc=32,p_MaxAsc=126)
{
StringReplace,p_Type,p_Type,!,,All
l_Neg := !ErrorLevel
StringReplace,p_Type,p_Type,#,@,All
l_Cse := !ErrorLevel
StringReplace,p_Type,p_Type,@,,All
l_Rep := !ErrorLevel
Random, l_Aux, %p_MinLength%, %p_MaxLength%
Loop, %l_Aux%
{
Loop
{
Random, l_Aux, %p_MinAsc%, %p_MaxAsc%
l_Aux := Chr(l_Aux)
If ( !l_Rep ) OR ( l_Rep AND !InStr(l_Output,l_Aux,l_Cse) )
{
If p_Type not in integer,number,digit,xdigit,alpha,upper,lower,alnum,space
break
Else
If l_Neg
{
If l_Aux is not %p_Type%
break
}
Else
If l_Aux is %p_Type%
break
}
}
l_Output .= l_Aux
}
return l_Output
}
You can use it as [=Random] or [=Random.Min.Max] ([=Random.1.5] will make file names from length 1 to max lenght 5 chars). I used RandomVar function from
here.