[EMAIL PROTECTED] writes:
>At 10:55 11/03/2003, you wrote:
>
>>On Tue, Mar 11, 2003 at 01:35:23AM +1300, Joff wrote:
>> > Ok, here is the actionscript code you'll want:
>> >
>> > //--- code start
>> > myArray = new Array();
>> >
>> > for (var x = 1; x <= 50; x++) {
>> > num = Math.round(Math.random()*3)+1;
>> > myArray[x] = num;
>> > }
>> > //--- code end
>> >
>> > Hope this helps...
>>
>>I think you'd better go and read the original again.
>
>Ah.. I see whats going on now.. I don't read perl, however, what do the
>splice() and unshitf() functions do?
splice() removes a number of elements from an array. In my example, $a is
the position, and 1 is the number of elements.
unshift() places an element into the beginning of an array.
-------------------------------------------------
Hamish McBrearty MCSE MCSA
Network Engineer
Rangi Ruru Girls' School
59 Hewitts Road
Christchurch
NEW ZEALAND
Ph 03 355-6099
Fax 03 355-6027
CELL 021 999770
E-Mail: [EMAIL PROTECTED]
--------------------------------------------------