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

	<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>2005-12-23T17:48:49-04:00</updated>

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

		<entry>
		<author><name><![CDATA[bsdkid]]></name></author>
		<updated>2005-12-23T17:48:49-04:00</updated>

		<published>2005-12-23T17:48:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58622#p58622</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58622#p58622"/>
		<title type="html"><![CDATA[help with random]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58622#p58622"><![CDATA[
thx guys! great job <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6919">bsdkid</a> — Fri Dec 23, 2005 5:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2005-12-23T17:32:37-04:00</updated>

		<published>2005-12-23T17:32:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58620#p58620</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58620#p58620"/>
		<title type="html"><![CDATA[help with random]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58620#p58620"><![CDATA[
Seeing as he said [rand 20] i didn't bother with 1 to 20 :p<br><div class="codebox"><p>Code: </p><pre><code>set x ""while {[llength $x] &lt; 20} { set x [lsort -integer -unique [lappend x [expr [rand 20] + 1]]]}</code></pre></div>is an more compact version (not that it really matters)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Fri Dec 23, 2005 5:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2005-12-23T16:36:30-04:00</updated>

		<published>2005-12-23T16:36:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58619#p58619</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58619#p58619"/>
		<title type="html"><![CDATA[help with random]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58619#p58619"><![CDATA[
[expr [rand 20] +1] to have from 1 to 20 (bouth included) not from 0 to 19.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Dec 23, 2005 4:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2005-12-23T03:22:10-04:00</updated>

		<published>2005-12-23T03:22:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58608#p58608</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58608#p58608"/>
		<title type="html"><![CDATA[help with random]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58608#p58608"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set x ""while {[llength $x] &lt; 20} {  lappend x [rand 20] set x [lsort -unique $x]}</code></pre></div>This code will also create a list of 20 different numbers. (20 not included)<br>If you want it to list the numbers from 19 to 0 or 0 to 19 just change the lsort slightly.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Fri Dec 23, 2005 3:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-12-22T23:16:25-04:00</updated>

		<published>2005-12-22T23:16:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58602#p58602</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58602#p58602"/>
		<title type="html"><![CDATA[help with random]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58602#p58602"><![CDATA[
<blockquote class="uncited"><div>one way how to do this (list putlog random numbers 0-20 without repeating)<br><div class="codebox"><p>Code: </p><pre><code>set num "0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20"while {[llength $num]!=0} {  set index [rand [llength $num]]  putlog [lindex $num $index]  set num "[lrange $num 0 [expr $index-1]] [lrange $num [expr $index+1] end]"}</code></pre></div></div></blockquote>[string replace] should be used instead of manipulating lists<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Thu Dec 22, 2005 11:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dwickie]]></name></author>
		<updated>2005-12-22T20:11:22-04:00</updated>

		<published>2005-12-22T20:11:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58597#p58597</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58597#p58597"/>
		<title type="html"><![CDATA[help with random]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58597#p58597"><![CDATA[
one way how to do this (list putlog random numbers 0-20 without repeating)<br><div class="codebox"><p>Code: </p><pre><code>set num "0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20"while {[llength $num]!=0} {  set index [rand [llength $num]]  putlog [lindex $num $index]  set num "[lrange $num 0 [expr $index-1]] [lrange $num [expr $index+1] end]"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5343">dwickie</a> — Thu Dec 22, 2005 8:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-12-22T20:11:09-04:00</updated>

		<published>2005-12-22T20:11:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58596#p58596</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58596#p58596"/>
		<title type="html"><![CDATA[help with random]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58596#p58596"><![CDATA[
Repeat what?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Dec 22, 2005 8:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bsdkid]]></name></author>
		<updated>2005-12-22T19:41:32-04:00</updated>

		<published>2005-12-22T19:41:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58595#p58595</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58595#p58595"/>
		<title type="html"><![CDATA[help with random]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58595#p58595"><![CDATA[
Can you help me make [rand 20] without repeating till all have been used?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6919">bsdkid</a> — Thu Dec 22, 2005 7:41 pm</p><hr />
]]></content>
	</entry>
	</feed>
