Changes between Version 32 and Version 33 of BoltRef
- Timestamp:
- Aug 14, 2008, 9:12:56 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BoltRef
v32 v33 265 265 The value function may be partly or entirely random. 266 266 267 This structure has a special role; it is used268 * to implement"experiments" where different lessons are compared;269 * to implement"adaptive courses" where different lessons are shown to different types of students.270 (or a mixture of the two).267 This structure can be used to implement 268 * "experiments" where different lessons are compared; 269 * "adaptive courses" where different lessons are shown to different types of students. 270 or a mixture of the two. 271 271 272 272 {{{ … … 292 292 293 293 294 === Random === 295 296 The '''random''' control structure selects randomly (without replacement) from a set of units. 297 {{{ 298 <?php 299 return random( 300 name('foobar'), 301 number(2), 302 lesson( 303 name('lesson 1'), 304 filename('bolt_sample_lesson1.php') 305 ), 306 lesson( 307 name('lesson 2'), 308 filename('bolt_sample_lesson2.php') 309 ), 310 lesson( 311 name('lesson 3'), 312 filename('bolt_sample_lesson3.php') 313 ), 314 ); 315 ?> 316 }}} 317 318 If 'number()' is given, that many units are shown; the default is one. 319 320 The 'without replacement' applies across multiple visits to the same structure 321 (e.g. because of review or refresh). 322 294 323 === Exercise set === 295 324 … … 321 350 ); 322 351 }}} 323 324 352 325 353 == Exercise review and repeat == … … 373 401 the student may begin refresh for set A while 374 402 partway through refresh for set B. 375 376 === Random ===377 The '''random''' control structure selects randomly (without replacement) from a set of units.378 {{{379 <?php380 return random(381 name('foobar'),382 number(2),383 lesson(384 name('lesson 1'),385 filename('bolt_sample_lesson1.php')386 ),387 lesson(388 name('lesson 2'),389 filename('bolt_sample_lesson2.php')390 ),391 lesson(392 name('lesson 3'),393 filename('bolt_sample_lesson3.php')394 ),395 );396 ?>397 }}}398 399 If 'number()' is given, that many units are shown; the default is one.400 401 The 'without replacement' applies across multiple visits to the same structure402 (e.g. because of review or refresh).403 404