请在Delphi中,如何在某一数值范围内取随机数?

2025-04-04 18:06:07
推荐回答(1个)
回答1:

randomize;
Label1.Caption:=inttostr(random(10));

可以随机产生0-9之间数字(10个),改变random(X)中的X试试