2 Instruction Descriptions
2-192
NJ-series Instructions Reference Manual (W502)
The value of Rnd is a real number between 0 and 1. Use the following processing to generate ran-
dom numbers within a specific range.
Example: The following formula generates random numbers between 100 and 200.
Rand_instance(A, UINT#1, abc);
Random number:=LREAL_TO_INT((200.0-100.0)*abc)+100;
Additional Information