Difference between revisions of "Array.shuffle()"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "* << Z3 Home * Z3 Language Documentation * Z%5E3_Array_Manipulation_Member_Functions | Listing of Z3 Array Manipulation Member F...")
 
 
(2 intermediate revisions by the same user not shown)
Line 10: Line 10:
 
MAGICSQUARE(3)
 
MAGICSQUARE(3)
  
{| class="wikitable"|-
+
{| class="wikitable"
 +
|-
 
| 2 || 7 || 6  
 
| 2 || 7 || 6  
 
|-
 
|-
Line 17: Line 18:
 
| 4 || 3 || 8  
 
| 4 || 3 || 8  
 
|}
 
|}
 +
 +
MAGICSQUARE(3).shuffle()
 +
{| class="wikitable"
 +
|-
 +
| 9 || 5 || 1
 +
|-
 +
| 4 || 3 || 8
 +
|-
 +
| 2 || 7 || 6
 +
|}
 +
 +
==See Also==
 +
[[Array.random() | random]]
 +
 +
[[Array.deal() |deal]]

Latest revision as of 04:04, 14 May 2020


Array.shuffle()

shuffle the array randomly.

MAGICSQUARE(3)

2 7 6
9 5 1
4 3 8

MAGICSQUARE(3).shuffle()

9 5 1
4 3 8
2 7 6

See Also

random

deal