
7-6
Section
Details of BASIC Commands
215
rnd
Syntax:
RND
[(<numerical expression>)]
Description:
Function. Returns a random number between 0 and 1.
<numerical expression> has a valid range: [-2147483648…2147483647]
If the <numerical expression> is negative the first number in the random number sequence is
returned.
If the <numerical expression> is omitted or positive then the next random number in the sequence
is returned.
If the <numerical expression> is zero then the last random number in the sequence is repeated.
Remarks:
Note:
1.
The random number sequence may be changed by using the
RANDOM
function.
Examples:
> 10 RANDOM 654
> 20 PRINT RND
> RUN
.234831
> PRINT RND
.969226
> RUN
.234831
See also:
RANDOM
romload
Syntax:
ROMLOAD
Description:
Command. Restores BASIC programs from FlashROM to program areas in RAM.
Remarks:
All four BASIC program areas are restored from FlashROM.
Refer to 7-1 Programming Procedure for precautions on restoring data from FlashROM.
If the
ROMLOAD
command is used while a program is executed, an “ILLEGAL FUNCTION
CALL” error will occur. If ROMSAVE has not been performed and the user attempts to execute
ROMLOAD from flash ROM, a “DATA TRANSFER CHECK SUM ERROR” will occur.
Examples:
> 10 REM THIS PROGRAM WILL BE SAVED
> ROMSAVE
> 10 REM THIS WILL BE OVERWRITTEN
> LIST
10 REM THIS WILL BE OVERWRITTEN
> ROMLOAD
> LIST
10 REM THIS PROGRAM WILL BE SAVED
>
See also:
ROMSAVE
,
ROMVERIFY
Содержание C200H-ASC11
Страница 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Страница 2: ...iv...
Страница 4: ...vi...