Quote:
Hi,, I want to work check before displaying any information on what it is to not repeated with supply
My code:
var sp:Array = new Array( 'Ball' , 'Seq' , 'Circle' , 'Rec');
btn.addEventListener(MouseEvent.CLICK, Press);
function Press (event:MouseEvent):void
{
txt_1.text = sp[Math.floor(Math.random() * sp.length)];
txt_2.text = sp[Math.floor(Math.random() * sp.length)];
txt_3.text = sp[Math.floor(Math.random() * sp.length)];
txt_4.text = sp[Math.floor(Math.random() * sp.length)];
txt_5.text = sp[Math.floor(Math.random() * sp.length)];
txt_6.text = sp[Math.floor(Math.random() * sp.length)];
}
I don't want to be in the field for similar txt1 with txt2 and txt3 for example..
going by that question perhaps