‎2008 Jun 16 10:37 AM
Hi,
My requirement is to get a random integer between 0 and 100. I have been trying to use several different function modules (QF05_RANDOM_INTEGER, CACS_RANDOM_I4, etc.) to achieve this, but they are not random! They seem to always return the same number, when executed for the first time - for example CACS_RANDOM_I4 (with input 0 and 100) gives me always 4.
How to get a real random number.
Regards,
Pa
‎2008 Jun 16 10:41 AM
Try with the below function module:
GENERAL_GET_RANDOM_INT
******Reward points if useful
Regards,
Kiran Bobbala
‎2008 Jun 16 10:41 AM
Try with the below function module:
GENERAL_GET_RANDOM_INT
******Reward points if useful
Regards,
Kiran Bobbala
‎2008 Jun 16 10:49 AM
Hi Kiran,
Your function module seem to solve the problem. At least it's more random than any of the function modules that I tried.
‎2008 Jun 16 10:42 AM
use the FM NUMBER_GET_NEXT
It will give you the next number...
Reward points...if its useful...
Regards
Rudra
Regards
Rudra
‎2008 Jun 16 10:50 AM
‎2008 Jun 16 10:51 AM
Hi!!
GENERAL_GET_RANDOM_INT
fuction module generates random numbers.Each time u execute some diffnt integer is generated.
Import parameters Value
RANGE 100
rewrd points.