The rangen Package


The rangen package is a package that generates random integers, rational numbers, and decimal number. Actually, the package uses the lcg package (by Erich Janka) to generate random integers, while rangen builds rational numbers and decimal numbers from the generated integers. My purpose in writing this package was to be able to create random questions for the quizzes of exerquiz (part of AeB). Indeed, that is what you can do with this package: Write a quiz question based on a template (for example, differentiate \a x^{\n} , where \a and \n are RVs (random variables) generated with rangen), determine if the user input is correct, and display the correct answer to the question.

Beta Testers wanted: The package is still in development. I would invite anyone interested to test the package, looking for bugs. Also, suggested features would be appreciated.

The rangen package requires the insdljs package from AeB. The package can be used without exerquiz, perhaps there are some applications to the generation of random numbers. As pointed out in the documentation, the fp package can be used to manipulate the numbers created by rangen.

The Distribution:

  1., the distribution
  2. rangen_man.pdf, the documentation (with interactive examples)
  3. rangen_tst.pdf, a demo file illustrating features applications to exerquiz quizzes.

The latest version of the AcroTeX eDucation Bundle (AeB) downloaded from the AeB home page , or download the zip files or directly. The former zip file contains only the package files and the new examples, the latter zip file is the full distribution.


Now I simply must get back to my retirement!