Jump to content

help on a listing algorithm


n3p3

Recommended Posts

Hello,

 

In a web project, let's say we have a thousand users. In our algorithm, first we randomly determine a lucky user and we want to notify other users how close they're to the lucky user.

Example,

user_id 365 -> lucky user

my user_id 360 and in my page it should say 5 user away from the lucky user..

 

We cannot determine it using user_id cause there may be some irregularities due to the deleted user rows.

 

Any suggestions on how to determine the difference between lucky user and others.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/163513-help-on-a-listing-algorithm/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.