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

📄 sr

📁 Algorithms for Image Processing and Computer Vision Source Code
💻
字号:
@c ----------------------------------------------------------------------
@node srand, random number
@heading @code{srand}
@subheading Syntax

@example
#include <stdlib.h>

void srand(unsigned seed);
@end example

@subheading Description

This function initialized the random number generator (@pxref{rand}). 
Passing the same @var{seed} results in @code{rand} returning predictable
sequences of numbers. 

@subheading Return Value

None.

@subheading Example

@example
srand(45);
@end example

@c ----------------------------------------------------------------------
@node srandom, random number
@heading @code{srandom}
@subheading Syntax

@example
#include <stdlib.h>

void srandom(int seed);
@end example

@subheading Description

This function initialized the random number generator (@pxref{random}). 
Passing the same @var{seed} results in @code{random} returning predictable
sequences of numbers. 

@subheading Return Value

None.

@subheading Example

@example
srandom(45);
@end example

⌨️ 快捷键说明

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