Ever wonder how Windows XP chose which picture to use as a logon picture? Some attributed it to the name and some claimed it chose one due to their ethnicity , others just by random. Well, yes, its completely by random. And, it is a simple algorithm that does it. Raymond Chen gives you a look at how its done and how it has some safeguards to not completely crash the system if someone adds way too many pictures. The function uses a one pass random selection algorithm. I can immediately think of...

Read the full article at MSTechPages