Hi, I am trying to make an alias that shuffles the text, $shuffle(text)
It doesn't work though, I'll appriciate if someone helps me with that.
This is what I wrote:
alias shuffle {
var %l = $len($1-), %i = 0, %x, %t, %y
while (%i < %l) {
inc %i
var %t = $addtok(%t,$gettok($1-,%i,32),32)
}
var %x = 0
while (%x < %l) {
inc %x
var %y = $addtok(%y,$gettok(%t,$rand(%x,%l),32),32)
}
return %y
}