Hacker News new | ask | show | jobs
by cwkoss 2796 days ago
Need some sort of deterministic bias based on user ID? Each user offset 1*Math.rand(hashseed) miles from location at randVector(hashseed)
1 comments

Why does it have to be deterministic per-user? Why not completely randomized across every user?
I guess depends on the application. Consistent offset would allow measurement of distances, but that does leak some information, so perhaps all-random is better for many uses.