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'm using Random.choice() to select from a list of one or more items generated at random. Quite frequently the lists were of length 1, but the script would stall on the choice. I can work around it by adding a length check, and taking the [0] of the list if it is length 1 and otherwise using choice, but it seems like an issue the library might face a lot.
I think any function that depends upon @_randbelow will suffer from this problem too.
I've already forked and started writing a fix. Is there a test script?
The text was updated successfully, but these errors were encountered:
I'm using Random.choice() to select from a list of one or more items generated at random. Quite frequently the lists were of length 1, but the script would stall on the choice. I can work around it by adding a length check, and taking the [0] of the list if it is length 1 and otherwise using choice, but it seems like an issue the library might face a lot.
I think any function that depends upon @_randbelow will suffer from this problem too.
I've already forked and started writing a fix. Is there a test script?
The text was updated successfully, but these errors were encountered: