warp.randi#

warp.randi(state: uint32) int#
  • Kernel

  • Python

Generate a random integer.

Sample in the range [-2^31, 2^31).

warp.randi(state: uint32, low: int32, high: int32) int
  • Kernel

  • Python

Generate a random integer.

Sample in the range [low, high).