Knuth shuffle: Difference between revisions

m
Line 790:
finally (return array)))</lang>
===Alternate solution===
{{incorrect|Common Lisp|The program selectsselect a random indexinteger from thea wholefixed range at each loop (and it's even unrelated to the array length), which leads to 1/ an exception if the index is outside the array 2/ a nonuniform distribution even if there is no exception. See [[wp:Fisher%E2%80%93Yates shuffle#Implementation errors]]}}
 
I use [https://franz.com/downloads/clp/survey Allegro CL 10.1]
1,336

edits