[REBOL] Re: random string
From: carl:cybercraft at: 10-Apr-2002 19:00
On 10-Apr-02, [john_kenyon--mlc--com--au] wrote:> Hi, > Is there a better way of creating a random string of 8 characters > than the folowing? > salt-string: copy "" > loop 8 [ append salt-string to-char add random 78 48 ]Hi John, I'm not sure if this is better from a performance point of view, but it's a little bit shorter anyway... salt-string: rejoin array/initial 8 [to-char add random 78 48] -- Carl Read