Generating random strings and symbols was slow - their lengths were being chosen from a Bernoulli distribution, and I was actually simulating a bunch of trials to build that distribution. Now I have hard-coded the particular Bernoulli distribution being used, so it generates one random integer rather than many (300).
Generating random strings and symbols was slow - their lengths were being chosen from a Bernoulli distribution, and I was actually simulating a bunch of trials to build that distribution. Now I have hard-coded the particular Bernoulli distribution being used, so it generates one random integer rather than many (300).