PDA

View Full Version : Is this possible to make?


Korsen
10-18-2005, 01:33 AM
I have a small amount of knowledge with C++ .Net edition, but i've been thinking of a program, and wondering to my wits end how to implement it.
Could anyone help me if they have time with creating the source code for this program? It could be in any form, a dos box or a win32 application or anything else.

Here's what i want to create:

a program to give me ratios between a set of 6 numbers between 1-1000, numbers in the set are not found more than once in a set. I.e. 46-32-163-826-568-32 shouldn't be possible. I also want to input many many sets of these numbers and have the program list me the ratio of the next number being picked to appear. I want to input up to a few thousand sets and ratios created and listed for each ratio for their possibility for appearance. I.e. a thousand sets of 6 numbers are input into this program x-x-x-x-x-x and the thousand sets of numbers are displayed with ratios next to them with the possibility of being picked by a random number generator. Also, on top of this, i'd like to include the numbers i did not input to be shown with it's ratio of being picked by a random number generator. I.e. between 1-2-3-4-5-6 and 995-996-997-998-999-1000, those numbers i did not input should be shown and given a ratio to be picked by a random number generator. Could anyone please help me create the source code for this? If anyone has any free time and is able to do something like this i'd be very grateful.

If anyone needs further information on how i'd like this implemented i'll be hovering around the forum after work. i'll respond to any threads.

aman
10-18-2005, 07:58 AM
The possibility of any combination of numbers being picked by a truley random number generaton should be exactly the same for each set.

If you do a google search on Lottery number picker you're sure to get plenty of hits, you might even find the code for one.

Korsen
10-18-2005, 08:26 PM
yes i see what your saying, but using ratio's for the chance of being picked, as in a number can't be picked more over any other, lotto generators don't have this ratio next to it. I want to put in and have stored a large amount of these sets, and have it's ratio determined as i put in each set. Afterwards, it would tell me the ratios of the remaining sets i didn't put in. It's like i need to combine ratio calculation code with a lotto generator and alter it's coding to fit my format.

I need to input number sets i choose and have it stored,
have a ratio determined for all sets input in real time,
and have sets not input generated and given ratios against input sets.

hey wait... could this possibly be done in excell??? the way it looks reminds me of something i'd see in excell... columns of number sets, a colum of the ratio for the set in it's row, and i'd pretty much have to do potluck on the non-input sets... any ideas on this kind of implementation?

mChicago
11-01-2005, 01:15 PM
hey wait... could this possibly be done in excell??? the way it looks reminds me of something i'd see in excell... columns of number sets, a colum of the ratio for the set in it's row, and i'd pretty much have to do potluck on the non-input sets... any ideas on this kind of implementation?

If I've followed this right, yes.

You could store the numbers in the first six columnes, have a 'score' in the seventh column, and have a running total in the eight :

3 4 6 8 12 35 3 3
5 9 7 8 46 345 6 9


Then you generate a random number based on the total of the 'scores' (the bottom figure in the running total. This ranom number is between 0 and the total, and you then go down the list untill you find the maximum that is inside the total but not above it... several functions would pull this back for you.

Does that help? This is basically just weighting the individual elements to be more liable to be picked...