Remote Processing Coorporation RPC-320 Dokumentacja Strona 133

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 186
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 132
Commands - 103
RND
Numeric Function
SYNTAX: n = RND(m)
PURPOSE: To return a pseudo–random number between 0 and 1.
REMARKS: The RND function returns a pseudo–random number between 0 and 1.
An m of less than zero will initialize the pseudo–random number sequence. Each time the
pseudo–random number generator is initialized with the same m number, it will produce the same
sequence of pseudo–random numbers.
An m of zero will cause RND to return the previous random number.
An m of greater than zero will cause RND to return the next random number in the sequence.
EXAMPLE: 10 R = RND(–1)
20 S = RND(0)
30 T = RND(1)
40 PRINT R,S,T
RUN
7.65943E–06 7.65943E–06 .163989
ERROR: none
Przeglądanie stron 132
1 2 ... 128 129 130 131 132 133 134 135 136 137 138 ... 185 186

Komentarze do niniejszej Instrukcji

Brak uwag