triton.language.rand¶
- triton.language.rand(seed, offset, n_rounds: constexpr = 10)¶
Given a
seed
scalar and anoffset
block, returns a block of randomfloat32
in \(U(0, 1)\).- Parameters:
seed – The seed for generating random numbers.
offsets – The offsets to generate random numbers for.