Fix typo in README.md
Use new error API for Rand exception