Comprehensive TeX Archive Network

Direc­tory macros/latex/contrib/rangen

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 home page for rangen is


The home page for AeB is


Comments and suggestions are always gratefully accepted and seriously

D. P. Story

Down­load the con­tents of this pack­age in one zip archive (186.7k).

rangen – Gen­er­ate ran­dom in­te­gers, ra­tio­nal and dec­i­mal num­bers

The pack­age gen­er­ates ran­dom in­te­gers, ra­tio­nal num­bers, and dec­i­mal num­bers. The pack­age uses the lcg pack­age to gen­er­ate ran­dom in­te­gers, and then builds ra­tio­nal num­bers and dec­i­mal num­bers from the gen­er­ated in­te­gers.

Home pagehttp://www.math.uakron.edu/~dp­story/rangen.html
Li­censeThe Project Public Li­cense 1.2
Copy­right1999–2002 D. P. Story
Main­tainerDon­ald P. Story
Con­tained inMiKTeX as rangen
Topics gen­er­ate and/or use pseudo-ran­dom num­bers
per­form cal­cu­la­tions within
Guest Book Sitemap Contact Contact Author