[Tutor] 15 puzzle

Michael P. Reilly arcege@speakeasy.net
Wed, 9 May 2001 08:07:09 -0400 (EDT)


Remco Gerlich wrote
> Use random.shuffle, i.e.
> 
> import random
> buttons = range(15)
> random.shuffle(buttons)
> print buttons

Which does not exist before Python 2.0.

  -Arcege

-- 
+----------------------------------+-----------------------------------+
| Michael P. Reilly                | arcege@speakeasy.net              |