Starshatter_Open
Open source Starshatter engine
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Random.h
Go to the documentation of this file.
1
/* Project nGenEx
2
Destroyer Studios LLC
3
Copyright © 1997-2004. All Rights Reserved.
4
5
SUBSYSTEM: nGenEx.lib
6
FILE: Random.cpp
7
AUTHOR: John DiCamillo
8
9
10
OVERVIEW
11
========
12
Utility functions for generating random numbers and locations.
13
*/
14
15
#ifndef Random_h
16
#define Random_h
17
18
#include "
Types.h
"
19
#include "
Geometry.h
"
20
21
// +----------------------------------------------------------------------+
22
23
void
RandomInit
();
24
Point
RandomDirection
();
25
Point
RandomPoint
();
26
Vec3
RandomVector
(
double
radius);
27
double
Random
(
double
min=0,
double
max=1);
28
int
RandomIndex
();
29
bool
RandomChance
(
int
wins=1,
int
tries=2);
30
int
RandomSequence
(
int
current,
int
range);
31
int
RandomShuffle
(
int
count);
32
33
// +----------------------------------------------------------------------+
34
35
#endif Random_h
nGenEx
Random.h
Generated on Tue Jun 5 2012 20:46:26 for Starshatter_Open by
1.8.1