You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree the current behavior of ignoring a seed if its been set to that number before is non-obvious. Having randn(seed=something) always apply is also suboptimal, since it means someone setting the seed when they actually need a random number could lead to a bug where they are getting an identical number out every time. They would then have to pull seed setting randn calls outside of any loop, which is awkward because the seed set call will still generate a random number (since seed setting is done in randn). The right solution here I think is to refactor out to a separate seed function, so that you'd call seed(someNum); randn(5) following the more conventional APIs for rngs.
Doing so should probably be part of #36, which in turn is probably dependent on #38 getting done first, since the current "module" system was just a set of quick hacks using conditional compilation until kotlin supported something better.
The text was updated successfully, but these errors were encountered: