** Get a random element from the set. */
()
| 49 | |
| 50 | /** Get a random element from the set. */ |
| 51 | func (this *RandomizedSet) GetRandom() int { |
| 52 | return this.vals[rand.Intn(len(this.vals))] |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * Your RandomizedSet object will be instantiated and called as such: |
nothing calls this directly
no outgoing calls
no test coverage detected