This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.
Old posts that have not been replied to for several years.
-
s
scripteurs
Post
by scripteurs »
looking the subject

-
Papillon
- Owner
- Posts: 724
- Joined: Fri Feb 15, 2002 8:00 pm
- Location: *.no
Post
by Papillon »
ummmm????
Elen sila lúmenn' omentielvo
-
s
scripteurs
Post
by scripteurs »
exemple :
word : hello
this proc return
llohe or ollhe or lheol etc....
capishé ?

-
Papillon
- Owner
- Posts: 724
- Joined: Fri Feb 15, 2002 8:00 pm
- Location: *.no
Post
by Papillon »
Code: Select all
proc scrabble {arg} {
set word [lindex [split $arg] 0]
set scrab ""; set tmp $word
while {[string length $scrab] < [string length $word]} {
set ind [rand [string length $tmp]]
set char [string index $tmp $ind]
append scrab $char
set tmp [string replace $tmp $ind $ind]
}
while {[string equal $word $scrab]} { set scrab [scrabble $word] }
return $scrab
}
something like this should do it....
Elen sila lúmenn' omentielvo
-
s
scripteurs
Post
by scripteurs »