I am collecting some sample data on my site and for now just want to collect data from say 10% of my visitors using a javascript function.
One way I can think of is to pick a number between 1 to 10 randomly and if its 10 then call the JS function to collect data else do nothing.
Also the data set need not be exactly from the 10% of users but a approximate number would also do for me.
I am Looking for suggestions on an alternate or better way to accomplish this.