summary refs log tree commit diff
path: root/mew.svnwiki
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2022-11-26 18:16:38 +0100
committerLeah Neukirchen <leah@vuxu.org>2022-11-26 18:16:38 +0100
commit9376d7131a9f2a8df55a556110304bd9a2e39c40 (patch)
treef4598ed4a6c49177145e9018d678863094e7180c /mew.svnwiki
parent2a0f96114fb75ecf6975812a041e96f7b9d161c5 (diff)
downloadmew-9376d7131a9f2a8df55a556110304bd9a2e39c40.tar.gz
mew-9376d7131a9f2a8df55a556110304bd9a2e39c40.tar.xz
mew-9376d7131a9f2a8df55a556110304bd9a2e39c40.zip
add sample
Diffstat (limited to 'mew.svnwiki')
-rw-r--r--mew.svnwiki5
1 files changed, 5 insertions, 0 deletions
diff --git a/mew.svnwiki b/mew.svnwiki
index 6898888..6509423 100644
--- a/mew.svnwiki
+++ b/mew.svnwiki
@@ -527,6 +527,11 @@ Returns a random integer such that N <= {{(rand <M>)}} < {{<M>}}.
 
 Shuffles the vector {{<vector>}} randomly in-place using a Fisher-Yates shuffle.
 
+<procedure>(sample <obj>)</procedure>
+
+Returns a random element of the list/vector/string {{<obj>}}.
+Returns a random key/value pair of the hash-table {{<obj>}}.
+
 
 == Special syntax