Xref: utzoo comp.lang.prolog:3141 comp.lang.functional:412 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!uwvax!daffy!saavik.cs.wisc.edu!quale From: quale@saavik.cs.wisc.edu (Douglas E. Quale) Newsgroups: comp.lang.prolog,comp.lang.functional Subject: shuffling a list Message-ID: <5056@daffy.cs.wisc.edu> Date: 5 Sep 90 16:58:26 GMT Sender: news@daffy.cs.wisc.edu Organization: University of Wisconsin -- Madison Lines: 6 Originator: quale@saavik.cs.wisc.edu What is the best way to shuffle a list in a functional language? It is easy to shuffle an array fairly, and in Scheme I would use list->vector, shuffle the vector, and use vector->list. -- Doug Quale