FirstClassトップページ


 ヘルプの目次
このヘルプについて このヘルプについて
 
エンドユーザ向けヘルプ エンドユーザ向けヘルプ
Client Help クライアントヘルプ
Web Help Webアクセスヘルプ
ScreenReader Help スクリーンリーダ
Form フォーム
Synchronization 同期
Definitions 用語
container コンテナ
 
管理者向けヘルプ 管理者向けヘルプ
Administration サーバの管理
Internet Services インターネットサービス
Customization Tools カスタマイズツール(英語)
Administering OTSW OTSWの管理
OTSW Custodian OTSW Custodian
Using FirstClass ED FirstClass ED(英語)
 
バナー:
 
 Randomize
 
Purpose
Initializes the random number generator to seed new random numbers (Rnd calls).
7202010_20004_0.png        Note
If Randomize isn't used, the Rnd function will return the same list of random numbers every time it is run.
Syntax
Randomize [Seed]


Seed
The numeric key from which to generate the random number list.
Using the same seed value each time a program is run will generate the same list of random numbers.
If this argument is omitted, Randomize generates a number list using the Timer function. This provides a different seed value than the value used in any previous calls.

Example
The following example demonstrates how Randomize can be used to create a new list of random numbers each time the program is run.
Sub Main ()
        Dim i As Integer
        Randomize
        Print "Generating 25 random numbers from 1 to 100*
        For i = 1 to 25
                Print (100 * Rnd) + 1
        Next i
End Sub

 

Copyright(C) 2002-2011 FC Management Co. All Rights Reserved