You mean like this? (albeit a somewhat half-arsed way to do it, but whatever, i’m tired… hehe… and haven’t played with AS in a long time)
//prototype function to randomize the array
Array.prototype.randomize = function() {
var arrayLength = this.length;
var randNum, tempArray;
for (i=0; i<arrayLength; i++) {
randNum = Math.floor(Math.random()*arrayLength);
tempArray = this*;
this* = this[randNum];
this[randNum] = tempArray;
}
};
//array containing the digits you want displayed in random order
myArray = ["1", "2", "3", "4", "5", "6"];
//call this whenever you want to re-arrange the order of numbers
myArray.randomize();
//use myArray.join("") to display the array as a string of number values
trace(myArray.join(""));