I have an array containing 3 variables,i want to randomly pick 2 of them without picking the same element twice,I did find a question by someone trying to do the same thing except they were working with AS3,and their issue was entirely different:Select random elements from an array without repeats?
here's my attempt:
var ar:Array=[k,l,m];
var raar:* = ar[Math.floor(ar.length * Math.random())];
I'm still new to AS2 and I don't how to utilize certain data types,how do I get this to work?