Skip to content

Commit f213d06

Browse files
committed
variables are random if they're random and NOT deterministic
1 parent 947da8f commit f213d06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/static/js/question/edit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,7 @@ $(document).ready(function() {
11751175
if(!tree) {
11761176
throw("no tree");
11771177
}
1178-
var is_random = Numbas.jme.isRandom(tree,prep.scope);
1178+
var is_random = !Numbas.jme.isDeterministic(tree, prep.scope) && Numbas.jme.isRandom(tree,prep.scope);
11791179
v.random(is_random);
11801180
} catch(e) {
11811181
v.random(false);

0 commit comments

Comments
 (0)