# CTAN has a new package: rangen

Date: September 30, 2009 2:13:10 PM CEST

This should be at your local mirror within a day.
Jim Hef{}feron
Saint Michael's College
.......................................................................................
The following information was provided by our fellow contributor:
Name of contribution: rangen
Version number: 1.3e
Author's name: D. P. Story
Location on CTAN: /macros/latex/contrib/rangen
Summary description: The rangen package is a package that generates random integers,
rational numbers, and decimal number.
License type: lppl
Announcement text:

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.

This package is located at http://tug.ctan.org/tex-archive/macros/latex/contrib/rangen . More information is at http://tug.ctan.org/pkg/rangen (if the package is new it may take a day for that information to appear). We are supported by the TeX Users Group http://www.tug.org . Please join a users group; see http://www.tug.org/usergroups.html .

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.

This package is located at http://tug.ctan.org/tex-archive/macros/latex/contrib/rangen . More information is at http://tug.ctan.org/pkg/rangen (if the package is new it may take a day for that information to appear). We are supported by the TeX Users Group http://www.tug.org . Please join a users group; see http://www.tug.org/usergroups.html .

## rangen – Generate random integers, rational and decimal numbers

The package generates random integers, rational numbers, and decimal numbers. The package uses the lcg package to generate random integers, and then builds rational numbers and decimal numbers from the generated integers.

Package | rangen |

Version | 1.4 |

Copyright | 1999–2002 D. P. Story |

Maintainer | Donald P. Story |