<?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>RandomLogic&#x27;s line # combinations algorithm</title>
		<link>https://www.lotterypost.com/thread/330544</link>
		<atom:link href="https://www.lotterypost.com/rss/topic/330544" rel="self" type="application/rss+xml" />
		<description>Lottery Post Forum Topic: RandomLogic&#x27;s line # combinations algorithm</description>
		<dc:language>en-us</dc:language>
		<generator>Lottery Post RSS Generator</generator>
		<item>
			<title>Reply #10</title>
			<link>https://www.lotterypost.com/thread/330544/6171653</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/330544/6171653</guid>
			<pubDate>Sat, 18 Jan 2020 18:17:14 GMT</pubDate>
			<dc:creator>nibor200</dc:creator>
			<description><![CDATA[<p>@RL,<br /><br />Yes, it helped a lot<br /><br />thanks again,<br /><br />Ed S.</p>]]></description>
			<category>nibor200</category>
		</item>
		<item>
			<title>Reply #9</title>
			<link>https://www.lotterypost.com/thread/330544/6171337</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/330544/6171337</guid>
			<pubDate>Sat, 18 Jan 2020 13:46:49 GMT</pubDate>
			<dc:creator>RL-RANDOMLOGIC</dc:creator>
			<description><![CDATA[<p>NC1$ was for testing and never got removed. Both the settolex and lextoset use combinations<br /><br />to do the conversions. Once you understand the concept, each works much the same way just<br /><br />in reverse. Hope it helps. Someday I will clean it up and cut out the junk code.<br /><br />RL</p>]]></description>
			<category>RL-RANDOMLOGIC</category>
		</item>
		<item>
			<title>Reply #8</title>
			<link>https://www.lotterypost.com/thread/330544/6169343</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/330544/6169343</guid>
			<pubDate>Thu, 16 Jan 2020 16:31:44 GMT</pubDate>
			<dc:creator>nibor200</dc:creator>
			<description><![CDATA[<p>@RL,<br /><br />1. Thanks for the algorithms.<br /><br />2. It looks like the lines NC1$ = LTRIM$(STR$(NC1)) aren&#x27;t needed to run just the &#x27;SUB LEXTOSET&#x27; in my circumstance.<br /><br />Thanks,<br /><br />Ed S.</p>]]></description>
			<category>nibor200</category>
		</item>
		<item>
			<title>Reply #7</title>
			<link>https://www.lotterypost.com/thread/330544/6169334</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/330544/6169334</guid>
			<pubDate>Thu, 16 Jan 2020 16:18:36 GMT</pubDate>
			<dc:creator>nibor200</dc:creator>
			<description><![CDATA[<p>@JadeLottery,<br /><br />Thanks for all of the Excel functions.<br /><br />Ed S.</p>]]></description>
			<category>nibor200</category>
		</item>
		<item>
			<title>Reply #6</title>
			<link>https://www.lotterypost.com/thread/330544/6165986</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/330544/6165986</guid>
			<pubDate>Mon, 13 Jan 2020 09:39:01 GMT</pubDate>
			<dc:creator>RL-RANDOMLOGIC</dc:creator>
			<description><![CDATA[<p>The code in blue below pads all numbers less than 10 of the converted set with a zero.<br /><br />Numbers 10 and greater are not padded. Also NSET = the total numbers in the pool<br /><br />so for my 5-39, NSET = 39. You can see the algorithm that makes the conversion is<br /><br />very small. If you need more info in porting it just ask, I know python can calculate nCr<br /><br />without a problem and with less code.<br /><br />SUB LEXTOSET<br /><br />LEX1=VAL(LEX1$)<br /><br />IF LEX1 NCR THEN GOTO BYPASSCONVERT<br /><br />SET1$= : LX1=NSET: LEXHI=(NCR-LEX... &#x5b;&#xa0;<a href="https://www.lotterypost.com/thread/330544/6165986">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>RL-RANDOMLOGIC</category>
		</item>
		<item>
			<title>Reply #5</title>
			<link>https://www.lotterypost.com/thread/330544/6165979</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/330544/6165979</guid>
			<pubDate>Mon, 13 Jan 2020 09:21:36 GMT</pubDate>
			<dc:creator>RL-RANDOMLOGIC</dc:creator>
			<description><![CDATA[<p>The code in blue corrects errors in the nCr calculations whenever a fractional value is<br /><br />returned. This was needed to round the value right of the decimal point to either 0 or 1.<br /><br />If porting to another language this code may not be needed and can be removed.<br /><br />RL<br /><br />SUB LEXTOSET<br /><br />LEX1=VAL(LEX1$)<br /><br />IF LEX1 NCR THEN GOTO BYPASSCONVERT<br /><br />SET1$= : LX1=NSET: LEXHI=(NCR-LEX1):PICK1 = PICKT<br /><br />NEXTMINI:<br /><br />NC1 = Factorial(LX1) / (Factorial(PICK1) * Factorial(LX1 - PICK1)):<br /><br />NC1$ = LTRIM... &#x5b;&#xa0;<a href="https://www.lotterypost.com/thread/330544/6165979">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>RL-RANDOMLOGIC</category>
		</item>
		<item>
			<title>Reply #4</title>
			<link>https://www.lotterypost.com/thread/330544/6165970</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/330544/6165970</guid>
			<pubDate>Mon, 13 Jan 2020 08:48:10 GMT</pubDate>
			<dc:creator>RL-RANDOMLOGIC</dc:creator>
			<description><![CDATA[<p>Here is the actual basic code I use for both conversions. Note, this code was written<br /><br />around 20 years ago. Pickt = the number of numbers within a set. Dat1$ is the string<br /><br />variable that holds the number set, numbers are zero padded, single spaced.<br /><br />LEX1$ is the index value of a set for converting a lex-index to a set, second sub<br /><br />below. There are many variables within the subs that need to be dimed as double.<br /><br />This is basic code but runs very fast, around 4000 conversions per second.... &#x5b;&#xa0;<a href="https://www.lotterypost.com/thread/330544/6165970">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>RL-RANDOMLOGIC</category>
		</item>
		<item>
			<title>Reply #3</title>
			<link>https://www.lotterypost.com/thread/330544/6165533</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/330544/6165533</guid>
			<pubDate>Sun, 12 Jan 2020 19:36:12 GMT</pubDate>
			<dc:creator>JADELottery</dc:creator>
			<description><![CDATA[<p>Here&#x27;s some functions we use in Excel; with a reverse function for finding a combination from a combinatorial index.<br /><br />If you copy and paste what&#x27;s between the horizontal lines in to an Excel VB Module, you&#x27;ll have these available as functions in Excel.<br /><br />Good Luck<br /><br />__________________________________________________<br /><br />Function Fact(ByVal n As Integer) As Double<br /><br />On Error GoTo exitfunction<br /><br />If (n = 1) Then<br /><br />Fact = 1<br /><br />Else<br /><br />Fact = n * Fact(n - 1)<br /><br />End If<br /><br />Exit Function<br /><br />ex... &#x5b;&#xa0;<a href="https://www.lotterypost.com/thread/330544/6165533">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>JADELottery</category>
		</item>
		<item>
			<title>Reply #2</title>
			<link>https://www.lotterypost.com/thread/330544/6165493</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/330544/6165493</guid>
			<pubDate>Sun, 12 Jan 2020 18:56:15 GMT</pubDate>
			<dc:creator>JADELottery</dc:creator>
			<description><![CDATA[<p>Factorial ! = ( -0) ( -1) ( -2) ( -3) 3 2 1 and 0!=1<br /><br />Combination C(n,r) = n!/(r! (n-r)!)<br /><br />Pick 5 Combinatorial Index P5Ci(n,r,n1,n2,n3,n4,n5)= C(n,r)-C(n-n1,r-0)-C(n-n2,r-1)-C(n-n3,r-2)-C(n-n4,r-3)-C(n-n5,r-4)<br /><br />hmm, interesting...</p>]]></description>
			<category>JADELottery</category>
		</item>
		<item>
			<title>Reply #1</title>
			<link>https://www.lotterypost.com/thread/330544/6164619</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/330544/6164619</guid>
			<pubDate>Sat, 11 Jan 2020 22:04:38 GMT</pubDate>
			<dc:creator>tom1262</dc:creator>
			<description><![CDATA[<p>Would it be possible to predict two digits or one digit on a four or three digit game. I&#x27;ve been researching a way to predict one digit but haven&#x27;t had any success. I&#x27;d like to have a formula for this? If anyone has a idea please feel free to email me a algorithm formula. Thanks, Tom</p>]]></description>
			<category>tom1262</category>
		</item>
		<item>
			<title>RandomLogic&#x27;s line # combinations algorithm</title>
			<link>https://www.lotterypost.com/thread/330544</link>
			<guid isPermaLink="true">https://www.lotterypost.com/thread/330544</guid>
			<pubDate>Sat, 11 Jan 2020 21:43:37 GMT</pubDate>
			<dc:creator>nibor200</dc:creator>
			<description><![CDATA[<p>Back in 2010 in a now closed topic My Digit System for Pick-5 or Pick-6 Lottery Rl posted the following<br /><br />About a year ago a LP member posted a question similar to this. Is there any way<br /><br />to calculate where a certain set of numbers would appear within a list of all the<br /><br />combinations for a given lottery . ...<br /><br />In a 5/44 lottery the set 03-17-24-35-42 would fall on line 317882<br /><br />n1 = 3, n2 = 17, n3 = 24, n4 = 35, n5 = 42<br /><br />n=44, r=5<br /><br />x1 = nCr<br /><br />x2 = (n-n1)Cr<br /><br />x2 = (x1-x2)<br /><br />x3... &#x5b;&#xa0;<a href="https://www.lotterypost.com/thread/330544">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>nibor200</category>
		</item>
	</channel>
</rss>

