476 Appendix A
Additional Lab Exercises
General Programming Techniques
Collecting Random Numbers
Create a program that generates 100 random numbers and displays them.
Record the total time required to generate and display the values.
Suggestions
This program can be created with six or fewer objects. Choose from the
following objects:
Start
For Range
Until Break
randomseed() function
random() function
Collector
Formula
Set Values
Alloc Int32
Logging AlphaNumeric
Strip Chart
Meter
Date/Time
Timer
Now()
Break
Do
Hint
To improve performance, send the data to the display only once by first
collecting the data into an array using the
Collector object. Note the
performance differences.