Woo.
It works.
My version has a %6.25 chance of greeting someone you've met less that 25 times, %12.5 chance of greeting someone you've met more than 25 times, %25 chance of greeting someone you have build trust with, and %50 chance of greeting someone you have full trust will.
Even though it's cool, I would still rather just greet people manually.