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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...