magpie-ea / magpie-modules

the reusable front-end bits in the _magpie modules
MIT License
7 stars 1 forks source link

Randomization and loops #16

Closed x-ji closed 5 years ago

stelaseldano commented 5 years ago

The loop and random functions are in babeUtils - babeUtils.loop, babeUtils.loopShuffled and babeUtils.shuffle

const views_seq = [
    intro,
    babeUtils.loopShuffled([
        spr,
        forcedChoice,
        ], 3),
    postTest,
    thanks
];