ReactOS
0.4.16-dev-297-gc569aee
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
random_number.cpp
Go to the documentation of this file.
1
/***********************************************************************************
2
random_number.cpp
3
4
* Copyright (c) 1997
5
* Mark of the Unicorn, Inc.
6
*
7
* Permission to use, copy, modify, distribute and sell this software
8
* and its documentation for any purpose is hereby granted without fee,
9
* provided that the above copyright notice appear in all copies and
10
* that both that copyright notice and this permission notice appear
11
* in supporting documentation. Mark of the Unicorn makes no
12
* representations about the suitability of this software for any
13
* purpose. It is provided "as is" without express or implied warranty.
14
15
***********************************************************************************/
16
#include "
random_number.h
"
17
#include "
Prefix.h
"
18
#if defined (EH_NEW_HEADERS)
19
# include <functional>
20
# include <cstdlib>
21
#else
22
# include <function.h>
23
# include <stdlib.h>
24
#endif
25
26
unsigned
random_number
(
size_t
range
)
27
{
28
#if !defined( __SGI_STL )
29
if
(
range
== 0)
return
0;
30
return
(
unsigned
)(EH_STD::rand() + EH_STD::rand()) %
range
;
31
#else
32
static
EH_STD::subtractive_rng rnd;
33
if
(
range
==0)
return
0;
34
return
rnd(
range
);
35
#endif
36
}
37
38
// default base for random container sizes
39
unsigned
random_base
= 1000;
Prefix.h
range
GLenum GLint * range
Definition:
glext.h:7539
random_number
unsigned random_number(size_t range)
Definition:
random_number.cpp:26
random_base
unsigned random_base
Definition:
random_number.cpp:39
random_number.h
sdk
lib
3rdparty
stlport
test
eh
random_number.cpp
Generated on Tue Nov 26 2024 06:13:19 for ReactOS by
1.9.6