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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.