How to use the d12 function from chance

Find comprehensive JavaScript chance.d12 code examples handpicked from public code repositorys.

626
627
628
629
630
631
632
633
634
635

beforeEach(() => {
    const products = [
        {
            totalFeet: chance.integer({min: 1}),
            measureAround: chance.d12(),
            labelsAround: chance.d12()
        }
    ];
    ticketAttributes.products = products;
fork icon0
star icon0
watch icon0

+ 19 other calls in file

260
261
262
263
264
265
266
267
268
269

beforeEach(() => {
    const departmentsToPickFrom = Object.keys(departmentToNextDepartmentAndStatus);
    attributesToUpdate = {
        attempts: chance.d100(),
        totalFramesRan: chance.d12(),
        jobComment: chance.string()
    };
    ticket = {
        destination: {
fork icon0
star icon0
watch icon0

+ 2 other calls in file