summary refs log tree commit diff
path: root/mew.svnwiki
diff options
context:
space:
mode:
Diffstat (limited to 'mew.svnwiki')
-rw-r--r--mew.svnwiki14
1 files changed, 9 insertions, 5 deletions
diff --git a/mew.svnwiki b/mew.svnwiki
index 5c955ed..6898888 100644
--- a/mew.svnwiki
+++ b/mew.svnwiki
@@ -511,17 +511,21 @@ When the pattern {{<irx>}} uses match data, the result is unspecified.
 
 Mew initializes the {{(chicken random)}} generator from a high entropy source.
 
-<procedure>(rand)<procedure>
+<procedure>(rand)</procedure>
 
 Returns a random real between 0 and 1.
 
-<procedure>(rand N)<procedure>
+<procedure>(rand <N>)</procedure>
 
-Returns a random integer such that 0 <= {{(rand N)}} < {{N}}.
+Returns a random integer such that 0 <= {{(rand <N>)}} < {{<N>}}.
 
-<procedure>(rand N M)<procedure>
+<procedure>(rand <N> <M>)</procedure>
 
-Returns a random integer such that N <= {{(rand M)}} < {{M}}.
+Returns a random integer such that N <= {{(rand <M>)}} < {{<M>}}.
+
+<procedure>(shuffle <vector>)</procedure>
+
+Shuffles the vector {{<vector>}} randomly in-place using a Fisher-Yates shuffle.
 
 
 == Special syntax