no...non funziona tutto....mi da errore qui:

function random(strorg)
{
var strrnd = "";
while ((var m = strorg.length) > 0) {
var j = Math.floor(Math.rand()*m);
-----> strrnd += strorg.substr[j,1];
strorg = strorg.substr(0,j) + strorg.substr(j+1);
alert ("controllo: strorg="+strorg);
}
document.f.casuale.value=strrnd
}