Erlang/OTP Forums

Author Message

<  Erlang patches mailing list  ~  Fisher-Yates lists shuffle bif

Guest
Posted: Tue Jun 12, 2007 3:33 am Reply with quote
Guest
Added a new bif to lists module for a Fisher-Yates shuffle taken from
Knuth's The Art of Computer Programming v2.

The seed to random(3) is initialize in beam_emu.c although there might
be a better place for it.

t


Post recived from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum