Quote:
Originally Posted by Inverness
That should be the simplest version.
|
PHP Code:
function onCreated() {
this.firstarray={"A","B","C",...,"Z"};
temp.len = this.firstarray.size();
temp.take = 2; /* how many to take from first array */
this.secondarray = this.firstarray;
for (temp.i=0;temp.i<temp.len-temp.take;temp.i++){
temp.random = int(random(0,temp.len-temp.i-.0000001));
this.secondarray.delete(temp.random);
}
}
