wrote RandomArray and RandomHash classes