Fixing typo in contract and adding random-index
Fix doc typo