Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Random number in RPG

519 views
Skip to first unread message

Christian Chanuel

unread,
Apr 20, 2001, 6:03:32 PM4/20/01
to
Hello everybody

I search to retrieve a random number in a RPG or CL program but i don't find
any command to do that.

Have you a idea ?

Thank you


gdt

unread,
Apr 20, 2001, 8:04:03 PM4/20/01
to
Lookup API CEERAND

GDT

"Christian Chanuel" <ccha...@sistema-logistics.com> wrote in message
news:Um2E6.701269$JT5.18...@news20.bellglobal.com...

Paul Cunnane

unread,
Apr 23, 2001, 6:06:41 AM4/23/01
to
ccha...@sistema-logistics.com (Christian Chanuel) wrote in
<Um2E6.701269$JT5.18...@news20.bellglobal.com>:

>I search to retrieve a random number in a RPG or CL program but i don't
>find any command to do that.

Check out the CEERAN0 API. If you don't know how to do that, start at
http://publib.boulder.ibm.com.

--
Paul

"We have no fuel on board, plus or minus 8 kilograms"
Get DeCSS: http://cubicmetercrystal.com/decss/

Thomas Raddatz

unread,
Apr 23, 2001, 3:36:10 PM4/23/01
to
If you do not like the FLOAT result, then you can also use the C function rand()
and seed() instead. rand() returns an integer between 0 and 32767. You may
download an example from my freeware page or send me an e-mail.

Thomas Raddatz.

Paul Cunnane schrieb:

--
*=====================================================*

e-mail Adresse:
Thomas....@tools400.de

Homepage:
http://www.tools400.de

*=====================================================*

Chuck Lundgren

unread,
Apr 25, 2001, 11:38:31 PM4/25/01
to
There are code samples for random number generators in RPG IV, RPG III,
RPG/400, ILE CL and COBOL/400 in the June 7, 2000 and May 10, 2000 Club Tech
Programming Tips newsletters, which are archived at
http://www.as400network.com/resources/ClubTech/index.cfm?fuseaction=ShowNews
letterIssue&ID=8237 and
<http://www.as400network.com/resources/ClubTech/index.cfm?fuseaction=ShowNew
sletterIssue&ID=8235>.

... Chuck

"Christian Chanuel" <ccha...@sistema-logistics.com> wrote in message
news:Um2E6.701269$JT5.18...@news20.bellglobal.com...

Christian Gstalder

unread,
Apr 27, 2001, 4:35:55 AM4/27/01
to
Here is my random number generator.

HTH

--

Christian Gstalder

Christian Chanuel a écrit dans le message ...

random.rpgle
0 new messages