メインコンテンツまでスキップ
バージョン:25.2

random

  • function
    • random()

    • The random function should be called with 1 or 2 integer parameters. When called with a single parameter, the random function returns a random integer between 1 and the value of the parameter. So random(10) will return a random number from 1 to 10. When called with 2 parameters, it returns a random number between the two values, inclusive. So random(100,200) returns a random number from 100 to 200.

    • Examples: +

       put random(99) —> 67
    • Related: reset

  • keyword
    • reset random