visit this link to find your solution.
or try this code
var originalArray:Array = new Array('Bob', 'George', 'Tom', 'Mohammed', 'Adam', 'Moses', 'Aaron', 'David');
var shuffledArray:Array = originalArray.sort(shuffle);
trace(shuffledArray);
private function shuffle(originalArray,shuffledArray):int
{
var sortNum : int = Math.round(Math.random() * 2) - 1;
return sortNum;
}
9
solved as3 randomly picking names