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

📄 ra

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

@example
#include <stdlib.h>

int rand(void);
@end example

@subheading Description

Returns a pseudo-random number from zero to @code{RAND_MAX}. 

@subheading Return Value

The number.

@subheading Example

@example
/* random pause */
for (i=rand(); i; i--);
@end example

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

@example
#include <stdlib.h>

long random(void);
@end example

@subheading Description

This is a better random number generator than @code{rand}. 

@subheading Return Value

A random number from zero to @code{MAXINT}. 

@subheading Example

@example
for (i=random(); i; i>>=1);
@end example

@c ----------------------------------------------------------------------
@node rawclock, time
@heading @code{rawclock}
@subheading Syntax

@example
unsigned long rawclock(void);
@end example

@subheading Description

Returns the number of clock tics (18.2 per second) since midnight. 

@subheading Return Value

The number of tics.

@subheading Example

@example
/* wait 1/4 second */
int i = rawclock()+5;
while (rawclock()<i);
@end example

⌨️ 快捷键说明

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