• 2022-06-08
    Math类中通过random的方法可以产生随机数,产生的范围是
    A: (0.0,1.0)
    B: [0.0,1.0)
    C: (0.0,1.0]
    D: [0.0,1.0]
  • B

    内容

    • 0

      生成一个[0.0,1.0)之间的随机小数的函数是( )。 A: A.random.randint(0.0,1.0) B: B.random.random() C: C.random.randrange(0.0,1.0) D: D.random.uniform(0.0,1.0)

    • 1

      在System.Random类中,返回一个介于0.0和1.0之间的随机数的方法是() A: NextDouble B: Now C: Max D: Random

    • 2

      下列是Math类中的一些常用方法,其中用于获取大于等于0.0且小于1.0的随机数的方法是?

    • 3

      Math static method random generates a random double value in the range from 0.0 ( ) A: up to but not including 1.0 B: up to and including 100.0 C: up to but not including 100.0 D: up to and including 1.0

    • 4

      伪随机序列的旁瓣值都接近于()。 A: 2.0 B: 1.0 C: 0.0 D: -1.0