triton.language.randint¶
- triton.language.randint(seed, offset, n_rounds: triton.language.core.constexpr = 10)¶
Given a
seedscalar and anoffsetblock, returns a single block of randomint32.If you need multiple streams of random numbers, using randint4x is likely to be faster than calling randint 4 times.
- Parameters
seed – The seed for generating random numbers.
offsets – The offsets to generate random numbers for.