[parsec-users] Identify the number format
ybao at CS.Princeton.EDU
Sun Oct 9 11:26:19 EDT 2011
This file is for generating random value. So I guess that the authors happened to pick up 127773L for generating random value.
----- Original Message -----
From: "abhishek rnath" <abhishekrnath at gmail.com>
To: parsec-users at lists.cs.princeton.edu
Sent: Saturday, October 8, 2011 9:48:30 AM
Subject: [parsec-users] Identify the number format
While going through the source code of swaptions, in a file called RanUnif.cpp, I found an instruction
k1 = ix/127773L;
Here what does the number 127773L means?
Also for other instructions:
ix = 16807L*( ix - k1*127773L ) - k1 * 2836L;
if (ix < 0) ix = ix + 2147483647L;
Please help me...
Abhishek R. Nath
M. Tech Computer Science
Amrita Vishwa Vidyapeetham
parsec-users mailing list
parsec-users at lists.cs.princeton.edu
More information about the parsec-users