📄 rand.3
字号:
.th RAND III 1/15/73.sh NAMErand, srand \*- random number generator.sh SYNOPSIS(seed in r0).br.ft Bjsr pc,srand /to initialize.s3jsr pc,rand /to get a random number.s3.nfsrand(seed)int seed;.s3rand( ).fi.ft R.s3.sh DESCRIPTION.it Randuses a multiplicative congruentialrandom number generator to return successive pseudo-randomnumbers (in r0) in the range from 0 to 2\u\s715\s10\d\*-1..s3The generator is reinitialized by calling.it srandwith 1 as argument (in r0).It can be set to a random starting point by calling.it srandwith whatever you like as argument,for example the low-order wordof the time..sh BUGSThe low-order bits are not very random.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -