<?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/20795" />

	<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>2020-06-15T10:25:22-04:00</updated>

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

		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-06-15T10:25:22-04:00</updated>

		<published>2020-06-15T10:25:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108558#p108558</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108558#p108558"/>
		<title type="html"><![CDATA[random string]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108558#p108558"><![CDATA[
oh thats even better tnx CrazyCat<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon Jun 15, 2020 10:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2020-06-15T09:53:08-04:00</updated>

		<published>2020-06-15T09:53:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108557#p108557</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108557#p108557"/>
		<title type="html"><![CDATA[random string]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108557#p108557"><![CDATA[
Just a short modification:<div class="codebox"><p>Code: </p><pre><code>proc randomString { {length 8} {iter 1} } {</code></pre></div>This will allow to:<br>- simply call randomString =&gt; will return 1 random string of 8 chars<br>- call randomString X (X is integer)=&gt; will return 1 random string of X chars<br>- call randomString X Y (X and Y are integer)=&gt; will return Y random strings of X chars<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Jun 15, 2020 9:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-06-15T08:56:56-04:00</updated>

		<published>2020-06-15T08:56:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108556#p108556</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108556#p108556"/>
		<title type="html"><![CDATA[random string]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108556#p108556"><![CDATA[
excellent tnx CrazyCat that works exactly as intented<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon Jun 15, 2020 8:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2020-06-14T18:46:21-04:00</updated>

		<published>2020-06-14T18:46:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108554#p108554</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108554#p108554"/>
		<title type="html"><![CDATA[random string]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108554#p108554"><![CDATA[
Add an argument to the proc:<div class="codebox"><p>Code: </p><pre><code># usage : randomString &lt;length&gt; &lt;iterations&gt;proc randomString { length iter } {   set chars "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"   set range [string length $chars]   set rlist {}   for {set j 0 } {$j &lt; $iter} {incr j} {      set txt ""      for {set i 0} {$i &lt; $length} {incr i} {         set pos [expr {int(rand()*$range)}]         append txt [string index $chars $pos]      }      lappend rlist $txt   }   return $rlist}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sun Jun 14, 2020 6:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-06-14T15:05:01-04:00</updated>

		<published>2020-06-14T15:05:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108553#p108553</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108553#p108553"/>
		<title type="html"><![CDATA[random string]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108553#p108553"><![CDATA[
basically was wondering if this proc could be changed to output 4 different strings of 8<br><br>like this:<br><br>$::network.randomstingof8.randomstingof8.randomstingof8.IP<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun Jun 14, 2020 3:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-06-14T08:11:41-04:00</updated>

		<published>2020-06-14T08:11:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108552#p108552</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108552#p108552"/>
		<title type="html"><![CDATA[random string]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108552#p108552"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc randomRangeString {length {chars "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"}} {    set range [expr {[string length $chars]-1}]    set txt ""    for {set i 0} {$i &lt; $length} {incr i} {       set pos [expr {int(rand()*$range)}]       append txt [string range $chars $pos $pos]    }    return $txt}</code></pre></div>when using this random string proc is there a way to output 3 different results in this because atm it seems to produce 3 same outputs: <br><br><blockquote class="uncited"><div> set newPassX [randomRangeString 8]<br><br> :$::network-$newPassX.$newPassX.$newPassX.IP</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun Jun 14, 2020 8:11 am</p><hr />
]]></content>
	</entry>
	</feed>
