Obviously there are a few ways of solving this problem, and some feedback would be appreciated.
I have a table of entries with a count beside each entry. The count represents a ratio of that entry's position in the overall data set.
Each entry will have its own page. On that page I want to set x number of links (which are entries of that table).
ie:
Entry 299
Count: 5
Entry 300
Count: 180
Thus, entry 300 would have a ratio of 180:1 on an entry with a count of 1, etc.
Now I want to be able to arbitrarily set the number of links to appear on a page, where no link is duplicated.
The last part isn't a problem, it's the link selection based on its ratio that I'd like crunched a bit.
There are a total of 40000 pages with 10 (the arbitrary number) link positions available.
I have a table of entries with a count beside each entry. The count represents a ratio of that entry's position in the overall data set.
Each entry will have its own page. On that page I want to set x number of links (which are entries of that table).
ie:
Entry 299
Count: 5
Entry 300
Count: 180
Thus, entry 300 would have a ratio of 180:1 on an entry with a count of 1, etc.
Now I want to be able to arbitrarily set the number of links to appear on a page, where no link is duplicated.
The last part isn't a problem, it's the link selection based on its ratio that I'd like crunched a bit.
There are a total of 40000 pages with 10 (the arbitrary number) link positions available.