Array – Talk
Jump to navigation
Jump to search
No edit summary |
m (Reverted edits by Heecf..... (talk) to last revision by Messiah2) |
||
Line 1: | Line 1: | ||
I | 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. | |||
<pre>_myArray select ((random (count _myArray)) - 0.5)</pre>--[[User:Mr.Peanut|Mr.Peanut]] 21:11, 28 September 2006 (CEST) | |||
tmp = []; | |||
val1 = [1,2,3]; | |||
val2 = [3,4,5]; | |||
tmp = tmp + [val1]; | |||
tmp = tmp + [val2]; | |||
tmp = tmp - [val1]; | |||
not working, why? I've also tried "tmp = tmp - val1;" --[[User:Messiah2|MessiahUA]] 16:14, 19 September 2008 (CEST) | |||
I | |||
Revision as of 00:20, 21 August 2012
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)
tmp = [];
val1 = [1,2,3];
val2 = [3,4,5];
tmp = tmp + [val1];
tmp = tmp + [val2];
tmp = tmp - [val1];
not working, why? I've also tried "tmp = tmp - val1;" --MessiahUA 16:14, 19 September 2008 (CEST)