-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSeeds.java
More file actions
35 lines (32 loc) · 933 Bytes
/
Seeds.java
File metadata and controls
35 lines (32 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package simModel;
import cern.jet.random.engine.RandomSeedGenerator;
public class Seeds
{
int rRandom[] = new int[12];
int cRandom[] = new int[12];
int typeSeed;
int transactionTime;
int aftm[] = new int[3];
int requestSeed;
int uSrvTm[] = new int[3];
int rTolTime;
int cTolTime;
public Seeds(RandomSeedGenerator rsg)
{
for(int i = 0; i < 12; i ++){
rRandom[i] = rsg.nextSeed();
cRandom[i] = rsg.nextSeed();
}
typeSeed = rsg.nextSeed();
transactionTime = rsg.nextSeed();
aftm[0] = rsg.nextSeed();
aftm[1] = rsg.nextSeed();
aftm[2] = rsg.nextSeed();
requestSeed = rsg.nextSeed();
uSrvTm[0] = rsg.nextSeed();
uSrvTm[1] = rsg.nextSeed();
uSrvTm[2] = rsg.nextSeed();
rTolTime = rsg.nextSeed();
cTolTime = rsg.nextSeed();
}
}