Appendix A 477
Additional Lab Exercises
General Programming Techniques
Solution—Collecting Random Numbers
Figure A-6 shows a solution for the exercise Collecting Random Numbers.
Figure A-6. Collecting Random Numbers
Key Points
n Logging AlphaNumeric vs. AlphaNumeric: Use
Logging
AlphaNumeric
to display consecutive input (either Scalar or Array
1D
) as a history of previous values. Use AlphaNumeric to display data
from only one execution (the last) as a single value, an
Array 1D, or an
Array 2D. The Logging display is an array without index values; the
AlphaNumeric display is the same array with optional index numbers
and values.