Casey Brooks
08/16/2022, 6:30 PMRandom
that’s immutable, but here you go. https://gist.github.com/cjbrooks12/cbe7e515ecfd75d63ca68db42da3a41bCasey Brooks
08/16/2022, 6:31 PMRandom
implementation is mutable internally, which can cause problems when your framework needs things to be immutable to work properly.ephemient
08/16/2022, 6:37 PMRandom
interface is a mistakeCasey Brooks
08/16/2022, 6:48 PMRandom
base class, plus a bunch of extension functions, that I didn’t want to copy. It could be confusing since it changes the behavior to be incompatible with the standard Random
, but for my needs this is sufficient. And that’s why I just posted this as a gist rather than publishing it as a full libraryaltavir
08/17/2022, 6:23 AM