Question
how do i modify this existing shuffle array / randomiser ?
hello !
some one on this forum posted the below code which has been perfect for my requirements but i would
like to stop the randomiser from repeating previously played .swf files...
in laymens terms, ONCE this random file is played, do not play until all other files have been played once....
WHERE DO I START ? (an explanation of what code does what would be appreciated)
var randomMax:Number = 10;
var randomMin:Number = 1;
var randomFileNum:Number = Math.floor(Math.random() * randomMax + randomMin);
trace(randomFileNum); //will display from 1 to 10;
loadMovieNum(randomFileNum + ".swf", 1);
cheers
some one on this forum posted the below code which has been perfect for my requirements but i would
like to stop the randomiser from repeating previously played .swf files...
in laymens terms, ONCE this random file is played, do not play until all other files have been played once....
WHERE DO I START ? (an explanation of what code does what would be appreciated)
var randomMax:Number = 10;
var randomMin:Number = 1;
var randomFileNum:Number = Math.floor(Math.random() * randomMax + randomMin);
trace(randomFileNum); //will display from 1 to 10;
loadMovieNum(randomFileNum + ".swf", 1);
cheers
