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

[REBOL] Re: Rebol script competition!

From: dhsunanda:gma:il at: 26-Sep-2007 9:00

> Just once. It's easy if you think about it. Now maybe this is a nicer > puzzle to solve. ;)
It's a trick I worked out for myself some years ago. Fot those who want a clue: IF:
>> random/seed 1000 >> random "abcde" ;; string we want to randomize
== "dcaeb" THEN:
>> random/seed 1000 >> random "cebad" ;; "derandomise" to return to the original
== "abcde" Half the trick is to use the same seed each time. Sunanda