test Random class from leveldb