Sharp OZ-707 Operation Manual - Page 107
Data. Restore
![]() |
UPC - 074000012141
View all Sharp OZ-707 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 107 highlights
RANDOMIZE P D FORMAT: RANDOMIZE Abbreviation: RA. See Also: RND PURPOSE: Resets the seed for random number generation. REMARKS: When random numbers are generated using the RND function, the Card begins with a predetermined "seed" or starting number. RANDOMIZE resets this seed to a new randomly determined value. The starting seed will be the same each time the power is turned on, so the sequence of random numbers generated with RND is the same each time. unless the seed is changed. This is very convenient during the development of a program because it means that the behavior of the program should be the same each time it is run, even though it includes a RND function. When you want the numbers to be truly random. the RANDOMIZE statement can be used to make the seed itself random. READ p FORMAT: READ variable. variable, .... variable Abbreviation: REA. See Also: DATA. RESTORE PURPOSE: Reads values from a DATA statement and assigns them to variables. REMARKS: When assigning initial values to an array, it is convenient to list the values in a DATA statement and use a READ statement in a FOR...NEXT loop to load the values into the array. When the first READ is executed, the first value in the first DATA statement is returned. Succeeding READs use succeeding values in the order in which they appear in the program. regardless of how many values are listed in each DATA statement or how many DATA statements are used. If desired. the values in a DATA statement can be read a second time using the RESTORE statement. Note: The type of data must match the type of variables (numerical or string) to which it is to be assigned. 202 203
![](/manual_guide/products/sharp-oz707-operation-manual-7aa0508/107.png)