Subversion Repositories wimsdev

Rev

Rev 20 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. target=serial ordered shuffle stepserial stepordered stepshuffle
  2.  
  3. #include "xiao.inc"
  4.  
  5. \text{datafile=slib(oef/env datafile)}
  6. \integer{datacnt=wims(recordcnt \datafile)}
  7. \text{shuff=shuffle(\datacnt)}
  8. #include "confparm.inc"
  9.  
  10. #if defined TARGET_serial
  11. \title{questions dans la suite}
  12. \integer{start=randint(0..\datacnt-\questions)}
  13. \text{records=wims(values x+\start for x=1 to \questions)}
  14. \text{steptype=all}
  15. #endif
  16.  
  17. #if defined TARGET_ordered
  18. \title{questions aléatoires dans l'ordre}
  19. \text{shuff=shuffle(\datacnt)}
  20. \text{records=wims(sort numeric items \shuff[1..\questions])}
  21. \text{steptype=all}
  22. #endif
  23.  
  24. #if defined TARGET_shuffle
  25. \title{questions aléatoires dans le désordre}
  26. \text{shuff=shuffle(\datacnt)}
  27. \text{records=\shuff[1..\questions]}
  28. \text{steptype=all}
  29. #endif
  30.  
  31. #if defined TARGET_stepserial
  32. \title{Une par une dans la suite}
  33. \integer{start=randint(0..\datacnt-\questions)}
  34. \text{records=wims(values x+\start for x=1 to \questions)}
  35. \text{steptype=step}
  36. #endif
  37.  
  38. #if defined TARGET_stepordered
  39. \title{Une par une dans l'ordre}
  40. \text{shuff=shuffle(\datacnt)}
  41. \text{records=wims(sort numeric items \shuff[1..\questions])}
  42. \text{steptype=step}
  43. #endif
  44.  
  45. #if defined TARGET_stepshuffle
  46. \title{Une par une dans le désordre}
  47. \text{shuff=shuffle(\datacnt)}
  48. \text{records=\shuff[1..\questions]}
  49. \text{steptype=step}
  50. #endif
  51.  
  52. \text{choicename=Choix}
  53.  
  54. #include "proc.inc"
  55.  
  56.