From c5d3b30866dff0bbe3a2891ea4fcc3cd2d075d74 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sat, 26 Nov 2022 22:49:20 +0100 Subject: add shuffle!, make shuffle copy the vector --- mew.svnwiki | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mew.svnwiki') diff --git a/mew.svnwiki b/mew.svnwiki index 6509423..7d5dce7 100644 --- a/mew.svnwiki +++ b/mew.svnwiki @@ -525,6 +525,10 @@ Returns a random integer such that N <= {{(rand )}} < {{}}. (shuffle ) +Returns a copy of the vector {{}} with the entries in randomized order. + +(shuffle! ) + Shuffles the vector {{}} randomly in-place using a Fisher-Yates shuffle. (sample ) -- cgit 1.4.1