random库的seed(a)函数的作用是A.生成一个k比特长度的随机整数B.生成一个[0.0, 1.0)之间的随机小数C.生成一个随机整数D.设置初始化随机数种子a
random库的seed(a)函数的作用是
A.生成一个k比特长度的随机整数
B.生成一个[0.0, 1.0)之间的随机小数
C.生成一个随机整数
D.设置初始化随机数种子a
参考答案和解析
设置初始化随机数种子a
相关考题:
random是python的标准库之一,用来完成一些随机数相关的任务,randint是random库中的函数,则下列引用函数库的写法正确的是:() A.importrandomB.fromrandintC.fromrandintD.importrandintfromrandom
下列事件过程的功能是:建立一个名为Datal的随机文件,存放角度值及这些角度的正弦函数值和余弦函数值,角度为1,2,3,…,90。请在空白处填入适当的内容,将程序补充完整。 Private Type Ang K As Integer Sinx As Single Cosx As Single End Type Dim Ksc As Ang Private Sub Form_Click() Dim Y As Single Dim i As Integer DimA...\Data1.txtFor Random As #1 Len=10 Put #1,i,KscB...\Data1.txtFor Random As #1 Len=10 Put #1,Y,KscC...\Data1.txtFor Random As #1 Put #1,i,KscD...\Data1.txtFor Random As #1 Put #1,Y,Ksc
VoidSet(Aa);是类A中一个成员函数的说明,其中Aa的含义是()。A、类A的对象引用a作该函数的参数B、类A的对象a的地址值作函数的参数C、表达式变量A与变量a按位与作函数参数D、指向类A对象指针a作函数参数
In GLBP,which router will answer on client ARP requests?()A、all active AVF routers as the first response is used by the clientB、the AVG router,replying with a different AVF MAC address each timeC、a random AVF router,based on a GLBP seed hash keyD、only the AVG router that received the ARP request first
单选题In GLBP,which router will answer on client ARP requests?()Aall active AVF routers as the first response is used by the clientBthe AVG router,replying with a different AVF MAC address each timeCa random AVF router,based on a GLBP seed hash keyDonly the AVG router that received the ARP request first