move rand helpers to Crypto.Common
add set 2 challenge 12