Uniform noise part already exists. I don't know if there's a simple constant time platform, so a new part is needed for those that don't want to write a custom C module.
Designs
Child items
0
Show closed items
No child items are currently assigned. Use child items to break down this issue into smaller parts.
Linked items
0
Link issues together to show that they're related or that one is blocking others.
Learn more.
I've learned today that algorithms for non-uniform distributions are not constant time. Are, in fact, open ended. This may be a problem for the RCG. Would a truncated gaussian be ok?
Are you thinking that the do-while loop that tests on the random variable becomes an infinite loop, in the worst case? That's true, but would be safe to disregard since it's vanishingly unlikely to happen.
Based on some models I've seen running with dozens of noise blocks in them, I think we'd need to get into hundreds or thousands of misses before it would be a problem.
I am also interested in getting a Gaussian noise block. One thing that @tega-edo and I were thinking is that you could hold a buffer of possible values (maybe like the last 500 generated values) then if you had a miss, you could randomly select from that list; then you would not have a possibility of a non-completing loop. I'm not sure if it would work for a permanent implementation but it is something we are thinking of for our own gaussian noise block