I'm looking for help with a program that is presumably (I haven't enough programming experience to say with certainty) easy to write.
It will help me with a little game I'm working on. Basically, the premise is as follows:
I will provide a list of numbers.
The program must choose numbers from this list.
Each entry will have one number, from 1 to infinity, and another, explained below.
The lowest possible number (second number of an entry) will be 0.01. These numbers can be infinite and continuous (that is, .01, .02, .03 ... 10.00, 10.01 ... 699.99, 700.00, 700.01...)
Secondary numbers with higher values will be favored over numbers of lesser value.
Although greater values are favored, all values must have some probability of being chosen.
Basically, it's something like a lottery. An entry number comes in (say, 54) along with its value that is being judged (perhaps, 3.04). If 3.04 is among the highest values of all entries, and is chosen, the program should simply notify me that entry 54 has been chosen.
Hopefully I explained that with some clarity... Also, I'm not sure if it is proper for me to request a program as I am new to this forum.
As far as programming languages go, I haven't a preference except whatever would be the easiest for me to run.
Any questions, or if this thread needs to be moved, let me know!
(irrelevant but humorous)