learn-content-engine - v0.34.0
    Preparing search index...

    Interface ResolveExerciseVariablesOptions

    interface ResolveExerciseVariablesOptions {
        random?: () => number;
        values?: Readonly<Record<string, number>>;
    }
    Index
    random?: () => number

    Random source for SAMPLED variables, in [0, 1). Defaults to Math.random; pass a deterministic one in tests.

    values?: Readonly<Record<string, number>>

    Values to reuse instead of sampling and evaluating again: the review replay, which shows the learner the instance they saw. A variable missing here (content changed since) is sampled or evaluated afresh.