Generating a random number (GRX)
Chris Sellitto
sellich at guaranteedreturns.com
Wed May 12 09:14:36 PDT 2010
filePro® version 5.0.14RN9
Windows Server/XP environments.
I am trying to generate a number between 1-20, and seem to be doing something wrong. I keep generating the same number over and over. Below is a small test I tried, and RN always displays as 2192.
223 ------- - - - - - - - - - - -
@keyR ◄ If:
Then:
224 ------- - - - - - - - - - - -
◄ If: rn eq ""
Then: rn(4,.0)=rand("20")
225 ------- - - - - - - - - - - -
◄ If:
Then: rn=rand(" ")
226 ------- - - - - - - - - - - -
◄ If:
Then: msgbox "Random Number ="<rn
227 ------- - - - - - - - - - - -
◄ If:
Then: end
Any help is always appreciated.
Thanks in advance.
Christopher Sellitto
VP Computer Operations
Guaranteed Returns®
sellich at guaranteedreturns.com
More information about the Filepro-list
mailing list