triton.language.randint4x

triton.language.randint4x(seed, offset, n_rounds: constexpr = 10)

Given a seed scalar and an offset block, returns four blocks of random int32.

This is the maximally efficient entry point to Triton’s Philox pseudo-random number generator.

Parameters:
  • seed – The seed for generating random numbers.

  • offsets – The offsets to generate random numbers for.