以下()表达式产生一个0~7之间(含0,7)的随机整数。
A.Math.foor(MthtandomQ()*0)
B.Math. foor(MathrandomQ()*7)
C.Math. foor(Math. random()*8)
D.Math cal(Math. random()*8)
- · 有3位网友选择 C,占比37.5%
- · 有3位网友选择 D,占比37.5%
- · 有1位网友选择 B,占比12.5%
- · 有1位网友选择 A,占比12.5%
A.Math.foor(MthtandomQ()*0)
B.Math. foor(MathrandomQ()*7)
C.Math. foor(Math. random()*8)
D.Math cal(Math. random()*8)
B、Math.floor(Math.random()*7)
C、Math.floor(Math.random()*8)
D、Math.ceil(Math.random()*8)
A. x=Int(100*RnD)
B. x=Int(101*RnD)
C. x=1+Int(100*RnD)
D. x=1+Int(99*RnD)
A、Round(Rnd*51)
B、Int(Rnd*40+10)
C、Round(Rnd*50)
D、10+Int(Rnd*41)
Private Sub a3()
Dim x(1 To 10)As Integer,a(1 To 100)As Integer
Dim P As Integer,j As Integer
For j=1 To 100
a(j)=______
P=a(j)Mod 10
If P=0 Then P=10
______
Next j
For j=1 To 10
Debug.Print x(j);
Next j
End Sub
A、a[0~99] = 10;
B、a[0] = a[1] = ...... = a[99] = 10;
C、for (int n = 1; n <= 100; n++) a[n]="10;"> D、for (int n = 99; n >= 0; n--) a[n] = 10;
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!