I got a really interesting results with this:
Code: Select all
5 MODE 4: PRINT #0, "Seed (1-65537)? ";: INPUT #0, seed
10 WINDOW #1, 344, 128, 35, 35: SCALE #1, 128, 0, 0: BORDER #1, 1, 7: PAPER #1, 0: INK #1, 7
15 WINDOW #2, 256, 10, 35, 164: PAPER #2, 0: INK #2, 7
20 FOR i = 1 TO 512
25 x = myRand: y = myRand
30 INK #1, 4: CIRCLE #1, x/8.388607E6, y/1.677722E7, 1
35 PRINT #2, i, pt, x/8.388607E6, y/1.677722E7
40 END FOR i
45 STOP
50 DEFine FuNction myRand
55 n = 2.147484E9: REMark typed in as 2147483647
60 seed = (seed * 16807 + 1)
70 seed = seed - INT(seed / n) * n
80 RETurn seed
90 END DEFine
Code: Select all
5 MODE 4: PRINT #0, "Seed (1-65537)? ";: INPUT #0, seed
10 WINDOW #1, 344, 128, 35, 35: SCALE #1, 128, 0, 0: BORDER #1, 1, 7: PAPER #1, 0: INK #1, 7
15 WINDOW #2, 256, 10, 35, 164: PAPER #2, 0: INK #2, 7
17 size = 1
20 FOR i = 1 TO 512
22 IF i = 257 THEN size = 3
23 IF i = 384 THEN size = 5
25 x = myRand: y = myRand
30 INK #1, 4: CIRCLE #1, x/8.388607E6, y/1.677722E7, size
35 PRINT #2, i, pt, x/8.388607E6, y/1.677722E7
40 END FOR i
45 STOP
50 DEFine FuNction myRand
55 n = 2.147484E9: REMark typed in as 2147483647
60 seed = (seed * 16807 + 1)
70 seed = seed - INT(seed / n) * n
80 RETurn seed
90 END DEFine
Try this, type in:
10 num = 16777216
Then, on the console type this:
run
print num - 16777216
The result will be 0.
Now save the program (save mdv1_test_bas), do a new and reload it. Then type this again:
run
print num - 16777216
Now the result is 4.
What the proverbial f___!?