Closed
Description
opened on Jun 20, 2023
It would be nice to be able to generate, for example, a random value of type Tuple{Int, Bool}
without having to implement it myself. Something like the following:
function Random.rand(rng::AbstractRNG, ::Type{A}) where {A <: Tuple}
return ((Random.rand(rng, a) for a in A.parameters)...,)
end
Activity