37
E.g.
Random(3)
0
1
2
3
4
5
6
7
8
Random(3)+1
0
1
2
3
4
5
6
7
8
Random(3)+4
0
1
2
3
4
5
6
7
8
Random(3) will randomly generate numbers between 0, 1 and 2.
Random(3)+1 will randomly generate numbers between 1, 2 and 3.
Random(3)+5 will randomly generate numbers between 5, 6 and 7.
A decision symbol can be used to check for a random number.
•
Seconds
Seconds is a free running timer that starts from zero to give the elapsed time (in seconds) since a
program was started.
In this example it is being used to check whether it is over 5 seconds from
when the program was started.
In this example it is being used to check whether it is more than 5 seconds
from when the ‘end time’ variable was created
back to Table of Contents