Skip to content

Move random choice logic to the backend and test #18

@goldpbear

Description

@goldpbear

Currently, both the random selection of a respondent and the random selection of the question presented to the user on the question2 stage of the experiment are determined client-side, in the JS code.

Instead, I think we should make the random determinations in the backend. That way, we can write tests that check we are getting the expected statistical distributions of random questions over many runs of the experiment.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions