Difference between revisions of "Shuffle"

From MiniScript Wiki
Jump to navigation Jump to search
(Change header from "Default value" to "Type")
 
Line 5: Line 5:
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! Parameter Name !! Default Value !! Meaning
+
! Parameter Name !! Type !! Meaning
 
|-
 
|-
 
| ''self'' || list or map || object to shuffle
 
| ''self'' || list or map || object to shuffle

Latest revision as of 00:12, 18 November 2023

shuffle randomizes the order of elements in a list, or the mappings from keys to values in a map. This is done in place.

Arguments

Parameter Name Type Meaning
self list or map object to shuffle