[removed] differences between two ways of getting a random index from an array

前端 未结 0 994
忘了有多久
忘了有多久 2021-01-13 05:06

let\'s say we have an array with a size of n. I wanted to generate a random index i.e. in the range of [0, n - 1].

Here is what most of people would do<

相关标签:
回答
  • 消灭零回复
提交回复
热议问题