RANDOM Function

M言語プログラミングブック [WALTERS1997] から引用

Page 49.

コマンド

$RANDOM(limit)

Description

$RANDOM(limit) takes an interger >= 1 as an argument and returns a psuedorandom integer [0, limit).

  • If limit < 1 then the error RANDARGNEG is thrown.

; Writes a random number [0, 10)
S X=$RANDOM(10) W X

Table Of Contents

Previous topic

QUERY Function

Next topic

SELECT Function

This Page

inserted by FC2 system