News for hackers. Stuff that matters.
Re:Efficiently Generating a Number in a Range by emmanuel_1234 on Wednesday July 25, 2018 @10:42PM (#17614702)
Or in O(1):

  return min
Alternatively

  return max
Re:Efficiently Generating a Number in a Range by dahart on Thursday July 26, 2018 @10:21AM (#17617717)
> Or in O(1)

You mean in one instruction? The parent comment is O(1). The methods in the article are all O(1) too.