Array – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
Should there be any comment here or in [[random]] about randomly selecting an array element given the rounding rules?
Should there be any comment here or in [[random]] about randomly selecting an array element given the rounding rules? Or am I being ridiculous?


i.e.
e.g.
<pre>_myArray select ((random (count _myArray)) - 0.5)</pre>
<pre>_myArray select ((random (count _myArray)) - 0.5)</pre>--[[User:Mr.Peanut|Mr.Peanut]] 21:11, 28 September 2006 (CEST)

Revision as of 21:11, 28 September 2006

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

e.g.

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

--Mr.Peanut 21:11, 28 September 2006 (CEST)