Jump to content

Random number generation within a range


kzboray

Recommended Posts

Posted

1.) Is there a random number generator function in eISY that can be used in programming?

2.) Is there a way to define a variable within a range?

Example sudo code

If time of day = evening

     Then

      iRand = Generate a random Number between 15000 & 20000

    

 

Posted

Use the ISY function

TestRandom - [ID 0102][Parent 0001]

If
        $sTest.modulus_XX is not 0
 
Then
        $sTest.result_XX  = $sTest.modulus_XX
        Wait  2 seconds
        $sTest.result_XX = Random 200
 
Else
   - No Actions - (To add one, press 'Action')
 

 

  • Thanks 1
Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

  • Forum Statistics

    • Total Topics
      37.2k
    • Total Posts
      372.4k
×
×
  • Create New...