import { SYSTEM } from "@thi.ng/random/system";
import { repeatedly } from "@thi.ng/transducers/repeatedly";
const randomBits = (prob, num, rnd = SYSTEM) => repeatedly(() => rnd.probability(prob) ? 1 : 0, num);
export {
  randomBits
};
