You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- When the true answer is small, set the wrong answer to just +/- 1, otherwise -25%/+75%.
35
+
-- When it is a date between 1200 and 2100, make it -25 % or +75 % of the distance to today
36
+
CAST(CASE
37
+
WHEN questions.true_answer<10 THEN questions.true_answer+1-2* abs(random() %2) -- wrong answer = true answer +/- 1
38
+
WHEN questions.true_answer>1200
39
+
ANDquestions.true_answer<2100 THEN 2023- (2023-questions.true_answer) * (abs(random() %2) +0.75) -- wrong answer = true answer -25% or +75% of the distance to today
0 commit comments