variable input time MEDState Notation Repository › Forums › Coding Help Archive › variable input time This topic has 2 replies, 1 voice, and was last updated 8 years, 10 months ago by Med_Support. Viewing 3 posts - 1 through 3 (of 3 total) Author Posts May 16, 2012 at 10:20 pm #13068 Med_SupportModerator labrat Good evening, Is there a way to specify that an input should occur at a random time inbetween 60 and 90 seconds? Below I pasted the code I was working on. I have it set for 30 seconds, but ideally I would like it to be random inbetween 60 and 90: 30": ON ^LeftLight, ^LeftLever ---> S3 Thank you. May 17, 2012 at 8:41 am #13069 Med_SupportModerator Gary Bamberger The best way is to create a LIST and then draw from it randomly LIST Z = 60", 65", 70", 75", 80", 85", 90" S.S.1, S1, #START: ---> S2 S2, #R^LeftLever: RANDD Y = Z; OFF ^LeftLight, ^LeftLever ---> S3 S3, Y#T: ON ^LeftLight, ^LeftLever ---> S2 May 22, 2012 at 4:58 pm #13072 Med_SupportModerator labrat Thank you! That worked beautifully:) Author Posts Viewing 3 posts - 1 through 3 (of 3 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In