Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: random string

From: cyphre:seznam:cz at: 10-Apr-2002 10:48

Hi John, look at following example:
>> rejoin array/initial 8 [(to-char random 25) + 65]
== "GHBEYKRI" this example will generate string containing characters from #"A" to #"Z". Because I didnt understand what characters you want in the string you have to change appropriate value 25(scale of characters) and the offset in ascii table (65) to achieve your wanted result or just write another code into the block. regards, Cyphre