Items API Initialization
random
Configure options relating to a random Activity. This allows for an assessment based on a random selection of Items from pre-selected groups.
You would want to use this to make random Activities, based on easily controlled Item groups.
Examples
var initializationOptions = {
"random": {
"groups": [
{
"type": "fixed",
"label": "Introduction",
"shuffle_items": true,
"items": [
{"id": "Demo3","reference": "Demo3"},
{"id": "Demo4","reference": "Demo4"}
]
},
{
"type": "random",
"label": "Math",
"deliver": 1,
"items": [
{"id": "Demo5","reference": "Demo5"},
{"id": "Demo6","reference": "Demo6"}
]
}
// ...
]
}
};
Values
Attribute path random
Type object
Properties
-
groups array[GroupObjects]
Defines groups of Items which specifies which Items should be included, and any additional configuration for that group.
Caveats
Important This feature currently does not support sections or multiple Item banks.
Versioning
Version added: v2024.1.LTS