Slimelite BBS

random.lha

Back to e

Random Number Generator, Amiga E Module

Size
2.3K (2,341 bytes)
Added
2026-11-20 02:43
Downloads
2
Long Description
Random - Amiga E Module, Copyright © 2003 Kalle Raisanen. Based on PRNGs written by George Marsaglia. This little module gives you a couple of fairly good random number functions. Written mostly as an exercise in writing modules. See <http://xorksplace.port5.com/> for updates. Report any bugs to <xork@amiga.org> Procedures: seedRand() Sets seeds for random number generation. getRand() Returns a 16 bit random number. getRandRange(max) Returns a random number between 0 and max-1. See the source for more info. Copyright Copyright © 2003 Kalle Raisanen. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.