better randomize

db4
Doug Coleman 2008-09-25 16:17:37 -05:00
parent fdde7e410b
commit 86339deb22
1 changed files with 1 additions and 1 deletions

View File

@ -166,5 +166,5 @@ PRIVATE>
USE: math.ranges
USE: random
: randomize ( seq -- seq' )
dup length 1 swap [a,b) <reversed> [ dup random pick exchange ] each ;
dup length 1 (a,b] [ dup random pick exchange ] each ;