Changes between Version 32 and Version 33 of BoltRef


Ignore:
Timestamp:
Aug 14, 2008, 9:12:56 AM (16 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BoltRef

    v32 v33  
    265265The value function may be partly or entirely random.
    266266
    267 This structure has a special role; it is used
    268  * 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).
     267This 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.
     270or a mixture of the two.
    271271
    272272{{{
     
    292292
    293293
     294=== Random ===
     295
     296The '''random''' control structure selects randomly (without replacement) from a set of units.
     297{{{
     298<?php
     299return 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
     318If 'number()' is given, that many units are shown; the default is one.
     319
     320The 'without replacement' applies across multiple visits to the same structure
     321(e.g. because of review or refresh).
     322
    294323=== Exercise set ===
    295324
     
    321350);
    322351}}}
    323 
    324352
    325353== Exercise review and repeat ==
     
    373401the student may begin refresh for set A while
    374402partway through refresh for set B.
    375 
    376 === Random ===
    377 The '''random''' control structure selects randomly (without replacement) from a set of units.
    378 {{{
    379 <?php
    380 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 structure
    402 (e.g. because of review or refresh).
    403 
    404