Get a random element from the set. :rtype: int
(self)
| 115 | return False |
| 116 | |
| 117 | def getRandom(self): |
| 118 | """ |
| 119 | Get a random element from the set. |
| 120 | :rtype: int |
| 121 | """ |
| 122 | |
| 123 | return self.data_list[random.randint(0, self.length-1)] |
| 124 | |
| 125 | |
| 126 | # Your RandomizedSet object will be instantiated and called as such: |
nothing calls this directly
no outgoing calls
no test coverage detected