<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/1688" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2002-05-12T10:38:00-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/1688</id>

		<entry>
		<author><name><![CDATA[FreakyComputer]]></name></author>
		<updated>2002-05-12T10:38:00-04:00</updated>

		<published>2002-05-12T10:38:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=6864#p6864</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=6864#p6864"/>
		<title type="html"><![CDATA[Scrambling a word/line (please help)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=6864#p6864"><![CDATA[
Thanks you slennox <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"> That piece of code is really what my script needed, so now my string is always scrambled!  Thank you <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile">)<br><br>FreakyComputer<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1240">FreakyComputer</a> — Sun May 12, 2002 10:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[slennox]]></name></author>
		<updated>2002-05-11T21:10:00-04:00</updated>

		<published>2002-05-11T21:10:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=6842#p6842</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=6842#p6842"/>
		<title type="html"><![CDATA[Scrambling a word/line (please help)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=6842#p6842"><![CDATA[
This is adapted from my proc for randomising lists rather than strings, so it may not be the most efficient solution, but it works:<br><div class="codebox"><p>Code: </p><pre><code>proc randstring {string} {  set randstring ""  while {[string length $string] &gt; 0} {    set random [rand [string length $string]]    append randstring [string index $string $random]    set string [string range $string 0 [expr {$random - 1}]][string range $string [expr {$random + 1}] end]  }  return $randstring}</code></pre></div>randstring &lt;string&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13034">slennox</a> — Sat May 11, 2002 9:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FreakyComputer]]></name></author>
		<updated>2002-05-11T05:35:00-04:00</updated>

		<published>2002-05-11T05:35:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=6836#p6836</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=6836#p6836"/>
		<title type="html"><![CDATA[Scrambling a word/line (please help)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=6836#p6836"><![CDATA[
Okay, this is the part I am stuck with: i have a word ie. <strong class="text-strong">guranga</strong> in $ogaword but now i want my script to scramble, thus making that word ie. <strong class="text-strong">gaanrug</strong> using ALL the letters in the $ogaword and scrambling it... If anyone can just give that little snippet of code<br><br>Thanks<br>FreakyComputer<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1240">FreakyComputer</a> — Sat May 11, 2002 5:35 am</p><hr />
]]></content>
	</entry>
	</feed>
