Re: uniformly random distribution
Antero Mejr 07 Mar 2024 02:27 UTC
"Arthur A. Gleckler" <xxxxxx@speechcode.com> writes:
> Speaking without my editor's hat on, how about a way to sample from any subset
> of the Unicode categories, e.g. Letter, Symbol, Punctuation, etc?
I considered having char-generator take an optional SRFI-14 charset
argument, but decided against requiring the extra dependency. And it
would make char-generator inconsistent with the rest of the
zero-argument generator procedures.
Since R7RS-small is character set agnostic (besides ASCII, I think?), I
would be hesitant to include Unicode category-specific features in the
SRFI. But the above would be a good generator to have in an external
library.