Difference between revisions of "Shuffle"

From MiniScript Wiki
Jump to navigation Jump to search
(Created page with "<c>shuffle</c> randomize the order of elements in a list, or the mappings from keys to values in a map. This is done in place. === Arguments === {| class="wikitable" |- ! P...")
 
(Change header from "Default value" to "Type")
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<c>shuffle</c> randomize the order of elements in a list, or the mappings from keys to values in a map.  This is done in place.
+
<c>shuffle</c> randomizes the order of elements in a list, or the mappings from keys to values in a map.  This is done in place.
  
 
=== Arguments ===
 
=== Arguments ===
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