Author Topic: random number  (Read 11994 times)

kenobe

  • Jr. Member
  • Posts: 66
  • I'm a llama!
    • View Profile
random number
« on: June 30, 2010, 12:58:52 AM »
Hi
How do I get a random number using TBASIC?
I am using T100md 888 ::)

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:random number
« Reply #1 on: July 01, 2010, 12:37:15 AM »
There isn't a random number generator in the PLC. How do you use the random in your PLC program? One way of getting a different number each time is to generate a data from the RTC, but of course this is not "random" number. Just a different number each time.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

kenobe

  • Jr. Member
  • Posts: 66
  • I'm a llama!
    • View Profile
Re:random number
« Reply #2 on: July 03, 2010, 12:03:24 AM »
thanks
how about using nested RTC?