I am working a e-commerce website (in asp.net & c#) where which I want to implement a 'Lucky draw' functionality.The control flow would be like this :- the users will be buying a particular product on a day and I need to select a user from those who have purchased that product as the luck draw winner for the day.
My initial thought on implementing the lucky draw was to use the Random functions provided by C#.And there are lots of thoughts came in to my mind like ..
- How effective it would be if I only use the random functions in c#?
- Would it be better if I implement any random number generation algorithms for this purpose ?
- Is there any algorithms available for random selections from a group?
I am open to your valuable comments and suggestions.
Thanks
Alex