Use Crypto.Random if available.
Added concept of pattern breaker in karmacoin's strategy. This fixes #2.