Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はこのコードを持っています
label1.Caption:= 'Number is:' + inttostr(random(2) + 1);
しかし、その結果、毎回「1」になります。私が間違ったことを説明できますか?
乱数ジェネレーターを初期化するRandomizeには、random 関数を使用する前にメソッドを呼び出す必要があります。
Randomize