"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const assert = require("assert");
const debug_1 = require("../../../debug");
const fromSpec_1 = require("../../../spec/fromSpec");
const _specs_1 = require("../../../system/_specs");
const system_1 = require("../../util/system");
const spec = require('../../../system/core/common/RandomBit/spec.json');
const RandomBit = (0, fromSpec_1.fromSpec)(spec, _specs_1.default, {});
const randomBit = new RandomBit(system_1.system);
false && (0, debug_1.watchUnitAndLog)(randomBit);
false && (0, debug_1.watchGraphAndLog)(randomBit);
randomBit.play();
let bit;
randomBit.push('any', 1);
bit = randomBit.take('bit');
assert(bit === 0 || bit === 1);
randomBit.push('any', 'foo');
bit = randomBit.take('bit');
assert(bit === 0 || bit === 1);
//# sourceMappingURL=RandomBit.js.map