Does anyone have any tips working with a random nu...
# prefect-community
m
Does anyone have any tips working with a random number generator in prefect. I want my tasks to be able to recreate the result and also make sure they don’t get the same value when concurrency is involved. One of the things I though about is generating a set of random numbers based on a seed and passing them along to specific tasks. That way concurrency isn’t an issue. Just feel it’s not a very elegant solution. I though about putting the RNG in the context but then concurrency might be an issue
1
a
how would you solve it in Python?
m
Probably the same way 😅 Just thinking about those extra tiny tasks that all they do is create a seed so I can map it forward
a
tbh I don't know the answer here, super use case dependent