⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rand.3

📁 操作系统设计与实现源码
💻 3
字号:
.\"	@(#)rand.3c	6.2 (Berkeley) 9/29/85.\".TH RAND 3 "September 29, 1985".AT 3.SH NAMErand, srand \- random number generator.SH SYNOPSIS.nf.ft B#include <stdlib.h>void srand(unsigned \fIseed\fP)unsigned rand(void).ft R.fi.SH DESCRIPTION.B Randuses a multiplicative congruentialrandom number generator with period.if t 2\u\s732\s0\d.if n 2**32to return successive pseudo-randomnumbers in the range from 0 to.BR RAND_MAX ..PPThe generator is reinitialized by calling.B srandwith 1 as argument.It can be set to a random starting point by calling.B srandwith whatever you like as argument..SH "SEE ALSO".BR random (3).

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -