# Directory `tex-archive/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 http://www.math.uakron.edu/~dpstory/rangen.html The home page for AeB is http://www.math.uakron.edu/~dpstory/webeq.html Comments and suggestions are always gratefully accepted and seriously considered. D. P. Story 09/30/09

## Directories

Name | Notes |
---|---|

doc | |

examples |

## Files

Name | Size | Date | Notes |
---|---|---|---|

README | 1433 | 2009-09-30 02:23 | |

rangen.dtx | 72073 | 2009-04-26 05:39 | |

rangen.ins | 2014 | 2002-05-10 11:48 |

Download the contents of this package in one zip archive (379.5k).

## 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 Details | rangen |

Home page | http://www.math.uakron.edu/~dpstory/rangen.html |

Version | 1.3e |

License | The LaTeX Project Public License 1.2 |

Copyright | 1999-2002 D. P. Story |

Maintainer | D. P. Story |

Contained in | MikTeX as rangen |

Topics |
perform calculations within TeX generate and/or use pseudo-random numbers |