<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <font face="Georgia">You don't want the brackets around<br>
      <br>
      [ alphabet at: ( Random between: 1 and: (alphabet<br>
      size) ) ] <br>
      <br>
      What you wrote tries to store a block closure into a string. Use
      parentheses instead.<br>
      <br>
      Cheers,<br>
      Bob<br>
    </font><br>
    On 11/29/11 9:43 AM, Aeren wrote:
    <blockquote cite="mid:1322577833268-4119392.post@n4.nabble.com"
      type="cite">
      <pre wrap="">        | alphabet word |
        alphabet := '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'.
        word := String new: aSize.
        1 to: aSize do: [ :position |
                word at: position put: [ alphabet at: ( Random between: 1 and: (alphabet
size) ) ] ].</pre>
    </blockquote>
  </body>
</html>