Question

  Asked: Jul 2 2008   4:03 AM GMT
  Asked by: Eddie.lam


random value


RPG/400, RPG, Random Number Generator

i would like to apply a random value into a RPG/400 or RPG/II.But I can't find how to do it in official guide. Is there any expert to help me?

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



Hi,

Back in the days of RPG2 on the S/36 we used to use the seconds as a basis for a (kind of) random number. I found a link on google for this :-

Generating Random Numbers in ILE RPG

Hope this helps.

Regards,

Martin Gilbert.
  • AddThis Social Bookmark Button

Browse more Questions and Answers on AS/400 and Development.

Looking for relevant AS/400 Whitepapers? Visit the Search400.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register