File: random.bas

package info (click to toggle)
bwbasic 2.20pl2-14
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,784 kB
  • sloc: ansic: 21,005; makefile: 80
file content (13 lines) | stat: -rw-r--r-- 381 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
100 rem RANDOM.BAS -- Test RANDOMIZE and RND
110 print "This is a first sequence of three RND numbers:"
120 randomize timer
130 print rnd
140 print rnd
150 print rnd
160 print "This is a second sequence of three RND numbers:"
170 randomize timer + 18
180 print rnd
190 print rnd
200 print rnd
210 print "The second sequence should have been differrent"
220 print "from the first."