Array – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 2: Line 2:


i.e.
i.e.
<pre>_myArray select (random (count _myArray)) - 0.5)</pre>
<pre>_myArray select ((random (count _myArray)) - 0.5)</pre>

Revision as of 21:10, 28 September 2006

Should there be any comment here or in random about randomly selecting an array element given the rounding rules?

i.e.

_myArray select ((random (count _myArray)) - 0.5)