# Need help with Arrays!

**URL:** <https://forum.kirupa.com/t/need-help-with-arrays/8543>\
**Category:** flash\
**Created:** [November 23, 2002, 8:22am UTC](https://forum.kirupa.com/t/need-help-with-arrays/8543 "2002-11-23T08:22:00Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 25, 2002, 10:24am UTC](https://forum.kirupa.com/t/need-help-with-arrays/8543/21 "2002-11-25T10:24:27Z")

</div>

I would think that too, but whenever I run the text, I actually get the phrase “etc” the most.

I find that weird…not sure why it works, it works in Javascript too, that is how I knew to use it :-\

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 25, 2002, 10:32am UTC](https://forum.kirupa.com/t/need-help-with-arrays/8543/22 "2002-11-25T10:32:57Z")

</div>

-edit-

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 25, 2002, 11:57am UTC](https://forum.kirupa.com/t/need-help-with-arrays/8543/23 "2002-11-25T11:57:18Z")

</div>

> _Originally posted by jeremy_ \*  
> \*\*getting back to what I said earlier wouldn’t it seem that logicallly if flash was pulling (math)random numbers and then getting the floor of those numbers, that randomly generating the last element would happen the least amount of times? \*\*  
> I don’t see why it should :-\ Theoretically, Flash picks random number. So if you have 5 elements, there are equal odds that the number will be \< .2 and \> 0 (you get 0 ), 0.2 \< number \< 0.4 (–\> 1), 0.4 \< number \< 0.6 (–\> 2), 0.6 \< number \< 0.8 (–\> 3), 0.8 \< number \< 1 (–\> 4).

I’m not sure that this is very clear… :-\

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 25, 2002, 4:03pm UTC](https://forum.kirupa.com/t/need-help-with-arrays/8543/24 "2002-11-25T16:03:29Z")

</div>

i figured it out after playing with it more, I’ve also be up for about 27 hours so I am/was a little out of it.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 25, 2002, 5:45pm UTC](https://forum.kirupa.com/t/need-help-with-arrays/8543/25 "2002-11-25T17:45:22Z")

</div>

Wow, was posting that stuff at like 5:30am. :-\

[Previous page](https://forum.kirupa.com/t/need-help-with-arrays/8543.md?page=1)
