Команды SFK


    1        2        3        4        5        6        7        8        9        10    

Раздел 9. Diverse - Разное
ascii | ascii -dos | calc | cmd | data | env | fromclip | jsonform | license | number | prompt | random | ruler | spell | status | toclip | update | version | video | view | xmlform |

Help:   Рус   |   Eng        

Команда: random
sfk rand[om] [opt] [from to]

   create a random number.

   options
      -hex    produce hex output
      -dig=n  always use n digits

   setting a random seed
      to set a fixed randomizer seed
      at the start of a script, use:
      sfk rand seed n
      with n from 1 to 16384.

   command chaining
      supports output chaining.

   examples
      sfk rand 1 1000
         create a number from 1 to 1000
      sfk rand -dig=6 1 999999
         create a number from 1 to 999999
         with 6 digits, zero prefixed
      sfk rand 1 10 +setvar r
         set variable r to a random number