<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/">
	<channel>
		<title>A Better Random Comb.</title>
		<link>https://blogs.lotterypost.com/jadelottery/2017/5/a-better-random-comb.htm</link>
		<atom:link href="https://www.lotterypost.com/rss/blogcomments/123514" rel="self" type="application/rss+xml" />
		<description>JADELottery's Blog: A Better Random Comb.</description>
		<dc:language>en-us</dc:language>
		<generator>Lottery Post RSS Generator</generator>
		<item>
			<title>Original Blog Entry: A Better Random Comb.</title>
			<link>https://blogs.lotterypost.com/jadelottery/2017/5/a-better-random-comb.htm</link>
			<guid isPermaLink="true">https://blogs.lotterypost.com/jadelottery/2017/5/a-better-random-comb.htm</guid>
			<pubDate>Fri, 05 May 2017 22:09:36 GMT</pubDate>
			<dc:creator>JADELottery</dc:creator>
			<description><![CDATA[<p>Function RandComb(ByVal N As Integer, ByVal R As Integer) As String<br /><br />Dim vs As Integer &#x27;Value Selection<br /><br />Dim v(99) As Integer &#x27;Values Array<br /><br />Dim s(99) As Boolean &#x27;Sorted Selected Values Array<br /><br />Dim temp As String &#x27;Temporary String Storeage<br /><br />temp = &#x27;Initialize Temporary String<br /><br />&#x27;Initialize Arrays<br /><br />For a = 0 To 99<br /><br />v(a) = a<br /><br />s(a) = False<br /><br />Next<br /><br />&#x27;Select R of N values<br /><br />For a = 1 To R<br /><br />vs = Int(Rnd * (N - a + 1)) + 1 &#x27;Randomly select a value from 1 to N of any remaining values less by previous selections<br /><br />s(v(vs)) = True &#x27;Set sorted select value array<br /><br />&#x27;Shift to lower array positions those values greater than the current randomly selected value<br /><br />For b = 1 To N - a<br /><br />If b = vs Then<br /><br />v(b) = v(b + 1)<br /><br />End If<br /><br />Next<br /><br />Next<br /><br />&#x27;Add in order the selected values<br /><br />For a = 1 To 99<br /><br />If (s(a)) Then temp = temp + Format(a, 00 )<br /><br />Next<br /><br />&#x27;Return the selected R of N values<br /><br />RandComb = temp<br /><br />End Function<br /><br />... &#x5b;&#xa0;<a href="https://blogs.lotterypost.com/jadelottery/2017/5/a-better-random-comb.htm">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>Blog Entry</category>
			<category>JADELottery</category>
			<wfw:comment>https://www.lotterypost.com/blogentry/123514</wfw:comment>
		</item>
	</channel>
</rss>

