User Profile
Collapse
-
Jacko1953 replied to Lottery analysis - Counting the quantity and size of "blocks" of "hits" in a 7x7 Gridin Visual BasicI certainly will twinnyfo. Thanks again for evertone's replies. -
Jacko1953 replied to Lottery analysis - Counting the quantity and size of "blocks" of "hits" in a 7x7 Gridin Visual BasicThank you Twinnyfo, I can't say how impressed I am with you guys. I can now see how I was tinkering with the wrong kind of Arrays - Control Arrays instead of these two dimensional programming Arrays. I have a lot to learn about VB!
Knowing even less about MS Access than VB5, I'll work at adapting your code for VB5. Your 75 lines of code certainly do the job I was looking for. Cheers!Leave a comment:
-
Jacko1953 replied to Lottery analysis - Counting the quantity and size of "blocks" of "hits" in a 7x7 Gridin Visual BasicThanks
Thank you, I'll have a go at that. I'll let you know the results.Leave a comment:
-
Jacko1953 replied to Lottery analysis - Counting the quantity and size of "blocks" of "hits" in a 7x7 Gridin Visual BasicI must admit Rabbit, that I'm not familiar with pseudocode, but I think I see the logic.
I tried to use a label array initially, (0-48)and tried to specify surrounding squares to each label by subtracting or adding from each label's value in turn. For example, label1(8) would identify the "9" square on the grid, 8-7 would specify label1(1) the "2" square, while 8-6 would specify the "3" square all the...Leave a comment:
-
Jacko1953 replied to Lottery analysis - Counting the quantity and size of "blocks" of "hits" in a 7x7 Gridin Visual Basicsorry twinnyfo, you're waaay above my head here!
I don't think I've explained my problem very well.
I'm trying to determine, for any 6 from 49 lottery combination when visualised on a 7x7 grid, how many groupings there are.
There could be one group of six numbers all touching, vertically or diagonally, forming one block or there could be several other possibilities. So in the aforementioned example we would...Leave a comment:
-
Jacko1953 replied to Lottery analysis - Counting the quantity and size of "blocks" of "hits" in a 7x7 Gridin Visual BasicYes Rabbit, in the screenshot shown, for that set of numbers, there would be six groups of quantity one. Other combinations of 6 from 49 might form two groups of three, three groups of two, a two, a one and a three group, one group of 4 with two groups of one etc. Or even one group of six which happens very rarely (about 0.25% or less of draws) I wish to analyse each draw in the lottery to determine each draw's grouping. Visually, of course it's...Leave a comment:
-
Jacko1953 replied to Lottery analysis - Counting the quantity and size of "blocks" of "hits" in a 7x7 Gridin Visual BasicMy Code
Had trouble submitting code within this window , so have tried adding as attachment.......Leave a comment:
-
Jacko1953 replied to Lottery analysis - Counting the quantity and size of "blocks" of "hits" in a 7x7 Gridin Visual BasicSorry twinnyfo, I thought I had attached picture of form to post#1. I also thought I had replied to Rabbit's post enclosing code. I must be doing something wrong.Leave a comment:
-
Jacko1953 replied to Lottery analysis - Counting the quantity and size of "blocks" of "hits" in a 7x7 Gridin Visual BasicHello Rabbit, I took a sample of 500 or so draws of the UK 6 from 49 Lotto. I keep the entire draw history on printed arrays of 7x7 grids so that I can analyse the patterns using various parameters.
Of the 1000 I randomly selected, I found that 18% of the draws' numbers were grouped on the grid into three discrete blocks, 40% had 4 blocks of numbers and 26% had 5 blocks, accounting for 84% of draws. I wish to use VB5 to analyse the complete...Leave a comment:
-
Jacko1953 replied to Lottery analysis - Counting the quantity and size of "blocks" of "hits" in a 7x7 Gridin Visual BasicThanks drmdrm for your reply. I've had no problem with other filters in vb5, and this is the only remaining block i've come up against. I did write code to sort the results first, and this process i'm trying to do is the 2nd step. As with many other parameters, like odds/evens, decades, number sums etc., I believe that the number and size of blocks in each draw's unique grid pattern will follow a Bell curve, with 3,1,1,1 and 3,2,1 for example...Leave a comment:
-
Jacko1953 replied to Lottery analysis - Counting the quantity and size of "blocks" of "hits" in a 7x7 Gridin Visual BasicProblem not solved!
Ooops - ultimately that didn't work. I really would appreciate some help here please. All I want to know is to how to count the sizes and quantity of "blocks" of numbers on the results grid!
For example the numbers 4, 11 and 19 would count as one block of three, while 26, 28 and 34 would also count as one block of three, giving two blocks of 3 numbers each. the numbers 4, 13, 30, 39, 48 and 49...Leave a comment:
-
Jacko1953 replied to Lottery analysis - Counting the quantity and size of "blocks" of "hits" in a 7x7 Gridin Visual BasicProblem solved
Hi, just to announce that I solved the problem myself. I dispensed with the label array and created a grid of labels 1 to 49 which simplified things somewhat. I then created 6 variables for counting the blocks of numbers, and used the datechanged property of a textbox to increment the variables, hence counting the size of each block. A little clumsy, but effective.Leave a comment:
-
Jacko1953 started a topic Lottery analysis - Counting the quantity and size of "blocks" of "hits" in a 7x7 Gridin Visual BasicLottery analysis - Counting the quantity and size of "blocks" of "hits" in a 7x7 Grid
Hi, I am using Visual Basic 5 Learner's edition on a HP envy laptop running Windows 7.
I have written some fairly unsophisticated , but quite useful routines for my personal analysis of the UK 6 from 49 lottery.
For my purposes I have created a 7x7 "grid" consisting of an array of labels (i.e. label1(0) to Label1(48) and have written code to analyse various properties of the patterns generated in each game....
No activity results to display
Show More
Leave a comment: