Adaptagrams
libcola
pseudorandom.h
1
/*
2
* vim: ts=4 sw=4 et tw=0 wm=0
3
*
4
* libcola - A library providing force-directed network layout using the
5
* stress-majorization method subject to separation constraints.
6
*
7
* Copyright (C) 2015 Monash University
8
*
9
* This library is free software; you can redistribute it and/or
10
* modify it under the terms of the GNU Lesser General Public
11
* License as published by the Free Software Foundation; either
12
* version 2.1 of the License, or (at your option) any later version.
13
* See the file LICENSE.LGPL distributed with the library.
14
*
15
* This library is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18
*
19
* Author(s): Tim Dwyer
20
*/
21
22
#ifndef COLA_PSEUDORANDOM_H
23
#define COLA_PSEUDORANDOM_H
24
25
namespace
cola
{
26
27
class
PseudoRandom
28
{
29
public
:
30
PseudoRandom(
double
s = 1);
31
32
double
getNext(
void
);
33
double
getNextBetween(
double
min,
double
max);
34
35
private
:
36
int
a;
37
int
c;
38
unsigned
int
m;
39
double
range;
40
unsigned
int
seed;
41
};
42
43
}
44
#endif // COLA_PSEUDORANDOM_H
cola
libcola: Force-directed network layout subject to separation constraints library. ...
Definition:
box.cpp:25
Generated on Thu Jan 17 2019 14:55:39 for Adaptagrams by
1.8.14