<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>BAGLe question...</title>
		<link>https://gamedesign.wikidot.com/forum/t-10998/bagle-question</link>
		<description>Posts in the discussion thread &quot;BAGLe question...&quot; - b4gl</description>
				<copyright></copyright>
		<lastBuildDate>Sat, 17 Oct 2026 18:33:11 +0000</lastBuildDate>
		
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-10998#post-27459</guid>
				<title>Re: BAGLe question...</title>
				<link>https://gamedesign.wikidot.com/forum/t-10998/bagle-question#post-27459</link>
				<description></description>
				<pubDate>Tue, 05 Jun 2007 13:59:44 +0000</pubDate>
				<wikidot:authorName>u9</wikidot:authorName>				<wikidot:authorUserId>12755</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Yeah, i was thinking like a collection of user made functions like this one in <a href="https://gamedesign.wikidot.com/freebasic:user-functions">FreeBASIC</a></p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-10998#post-27441</guid>
				<title>Re: BAGLe question...</title>
				<link>https://gamedesign.wikidot.com/forum/t-10998/bagle-question#post-27441</link>
				<description></description>
				<pubDate>Tue, 05 Jun 2007 12:36:38 +0000</pubDate>
				<wikidot:authorName>hartnell</wikidot:authorName>				<wikidot:authorUserId>10978</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>There is : <a href="https://gamedesign.wikidot.com/basic4gl:source-code">source code</a>. :) &#8212;hartnell</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-10998#post-27437</guid>
				<title>Re: BAGLe question...</title>
				<link>https://gamedesign.wikidot.com/forum/t-10998/bagle-question#post-27437</link>
				<description></description>
				<pubDate>Tue, 05 Jun 2007 12:22:46 +0000</pubDate>
				<wikidot:authorName>u9</wikidot:authorName>				<wikidot:authorUserId>12755</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <blockquote> <p>If you want to generate a number between 4 and 10 you need to increase Max by 1…</p> </blockquote> <p>of course. Modulus doesn't return the max itself :D &#8230; maybe someone should make this into a function and put it in the resources for b4gl. There should be a sources section :)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-10998#post-27369</guid>
				<title>Re: BAGLe question...</title>
				<link>https://gamedesign.wikidot.com/forum/t-10998/bagle-question#post-27369</link>
				<description></description>
				<pubDate>Tue, 05 Jun 2007 06:15:16 +0000</pubDate>
				<wikidot:authorName>bmatthew1</wikidot:authorName>				<wikidot:authorUserId>11779</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>^^<br /> Don't worry about it, lol. :)</p> <p>When I first started using Basic4GL I used to always have problems generating Random Numbers.</p> <p>The Basic4GL Help Documentation isn't much help either.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-10998#post-27364</guid>
				<title>Re: BAGLe question...</title>
				<link>https://gamedesign.wikidot.com/forum/t-10998/bagle-question#post-27364</link>
				<description></description>
				<pubDate>Tue, 05 Jun 2007 05:54:57 +0000</pubDate>
				<wikidot:authorName>Linkage</wikidot:authorName>				<wikidot:authorUserId>19255</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Yeah, true. Sorry, it's just that I normally have to generate numbers between x and 1 so it hasn't been a problem to me before.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-10998#post-27244</guid>
				<title>Re: BAGLe question...</title>
				<link>https://gamedesign.wikidot.com/forum/t-10998/bagle-question#post-27244</link>
				<description></description>
				<pubDate>Mon, 04 Jun 2007 14:06:24 +0000</pubDate>
				<wikidot:authorName>bmatthew1</wikidot:authorName>				<wikidot:authorUserId>11779</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Yeah, you're right.</p> <p>If you want to generate a number between 4 and 10 you need to increase Max by 1&#8230;</p> <div class="code"> <pre><code>r = Rnd() % (11 - 4) + 4</code></pre></div> <p>Which would become&#8230;</p> <div class="code"> <pre><code>r = Rnd() % (7) + 4</code></pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-10998#post-27191</guid>
				<title>Re: BAGLe question...</title>
				<link>https://gamedesign.wikidot.com/forum/t-10998/bagle-question#post-27191</link>
				<description></description>
				<pubDate>Mon, 04 Jun 2007 09:22:09 +0000</pubDate>
				<wikidot:authorName>u9</wikidot:authorName>				<wikidot:authorUserId>12755</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>This seems wrong&#8230; shouldn't it be</p> <div class="code"> <pre><code>r = rnd() % ( max - min ) + min</code></pre></div> <br /> ? <p>E.g. i want a random number between 4 and 10 then</p> <div class="code"> <pre><code>r = rnd() % ( 10 - 4 ) + 4 ' Which becomes r = rnd() % ( 6 ) + 4 ' Where rnd() % 6 gives a number between 0 and 6. ' Add +4 to that and you have a random number between ' 4 and 10</code></pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-10998#post-27141</guid>
				<title>Re: BAGLe question...</title>
				<link>https://gamedesign.wikidot.com/forum/t-10998/bagle-question#post-27141</link>
				<description></description>
				<pubDate>Mon, 04 Jun 2007 02:36:29 +0000</pubDate>
				<wikidot:authorName>Woad</wikidot:authorName>				<wikidot:authorUserId>19640</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Thanks, works.</p> <div class="code"> <pre><code>r = rnd() % max + min</code></pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-10998#post-27132</guid>
				<title>Re: BAGLe question...</title>
				<link>https://gamedesign.wikidot.com/forum/t-10998/bagle-question#post-27132</link>
				<description></description>
				<pubDate>Mon, 04 Jun 2007 01:55:14 +0000</pubDate>
				<wikidot:authorName>Anonymous</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>(Linkage, at school)</p> <div class="code"> <pre><code>number = rnd() % [big amount] + [small amoutt]</code></pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://gamedesign.wikidot.com/forum/t-10998#post-27127</guid>
				<title>BAGLe question...</title>
				<link>https://gamedesign.wikidot.com/forum/t-10998/bagle-question#post-27127</link>
				<description></description>
				<pubDate>Mon, 04 Jun 2007 00:46:36 +0000</pubDate>
				<wikidot:authorName>Woad</wikidot:authorName>				<wikidot:authorUserId>19640</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>How can I get a random number between x amount and x amount? Thanks.</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>