Random seed support

Added support for random seeds (native in MySQL and Postgres, approximated in SQLLite by hashing the id).  Closes #21.