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
Currently if the chars option is not specified, the characters from undefined are used as the custom characters (including the fact that d, n and e are 2x more frequent than the remaining letters.
Should an error be thrown instead? Or maybe [a-z] used and a message logged to that effect?
The readme does indeed specify that the default is undefined, but it was still a little surprising to me that it was allowed to be coerced to a string if not user-specified.
The text was updated successfully, but these errors were encountered:
randomatic('?', 4)
Currently if the
chars
option is not specified, the characters fromundefined
are used as the custom characters (including the fact thatd
,n
ande
are 2x more frequent than the remaining letters.Should an error be thrown instead? Or maybe
[a-z]
used and a message logged to that effect?The readme does indeed specify that the default is
undefined
, but it was still a little surprising to me that it was allowed to be coerced to a string if not user-specified.The text was updated successfully, but these errors were encountered: