I am looking to add a random sleep of 0-120 seconds before uploading data via FTP so the 20+ loggers aren't all hammering the FTP server simultaneously. I see there is a Delay command in CRBASIC, is it possible to set the delay value to be a random number within a range?
The Delay command requires that the delay be a constant, so you cannot put a random number in the Delay instruction. But you could use a Delay inside a loop that is random. Something like this:
RealTime( rTime() )
 'Seed random number generator.
 'rTime(6) = Seconds
 Randomize( rTime(6))
 random = INT(120*RND+1)
For count = 1 To random
 Delay (0,1,Sec)
 Next Count