S
Skybuck Flying
I am beginning to see why microsoft did not include this nrand SHIT !!!!
1. The documentation is SHIT
2. The implementation is SHIT
=D
IN OTHER WORDS UNIX IS SHIT !
IF THESE FUCKING IDIOTS CANT EVEN MAKE A FUCKING RANDOM FUNCTION AND
DOCUMENT IT WELL SO THAT PEOPLE CAN UNDERSTAND IT
THEN WHAT CAN THESE STUPID UNIX FUCKHEADS DO RIGHT ????
Lol, Thank you
I'll leave the rest of my calm post in which I wrote before this rant LOL
Though I think the RANT is more important
Ok,
I am at a total loss now
3 Different results actually 4... and the documentation ain't helping.
1. Different results on linux/knoppix
2. Different results on windows xp
2.1 Different results when using brackets
2.2 Different results if state48 is changed/initialized ???
How is one supposed to use nrand48( ??? ) ?????????????
With some parameters ???
The documentation is not clear about this or the function is mal functioning

I think the documentation says nrand48 can be used without initialising
anything ???
"
The erand48(), nrand48() and jrand48() functions do not require an
initialisation entry point to be called first.
"
???
int main()
{
uint16 state48[3];
//state48[0] = 0;
//state48[1] = 0;
//state48[2] = 0;
printf("%d \n", nrand48(state48) );
printf("%d \n", nrand48(state48) );
printf("%d \n", nrand48(state48) );
printf("%d \n", nrand48(state48) );
printf("%d \n", nrand48(state48) );
// the windows xp / visual c/c++ 6.0 output is:
// source version 0.01 - version 0.03:
// without brackets:
// 1288336289
// 893806678
// 810173679
// 37620279
// 474250687
// source version 0.04:
// with brackets:
// 257717153
// 323532094
// 23385569
// 378241935
// 2040867715
// the linux/knoppix 3.1 kdev ??? output is:
// source version 0.03:
// default nrand48:
// 1367402799
// 1703755632
// 1875357054
// 1202986045
// 1604074163
return 0;
}
Sigh,
It would be nice if nrand48 and the test program produced the same results
on
1. Linux/Knoppix
2. Windows XP
Isn't it supposed to produce the same output ?
If Yes,
Then possibly test program flawed
Then possibly nrand48 routine flawed
If no
Then quite with unix shit and move on =D replace it/use it whatever...
NONONO can't do that...
I need a good nrand48() function to make sure the program works like it was
designed.
Though seeing a coder not using ( ( ( ) ) ) to make the calculations more
robust starts to make me wonder about the coder's quality level.
If I ever design a programming language I'll make damn sure that this code
can't compile ever
a = f << b | c >> d * e / k; // or any other code like it
Only this will be allowed:
a = ( ( f << b ) | ( c >> d ) * e ) / k; // or whatever way it was ment to
do the calculations as long as 2 operands are nicely wrapped in ()
All math people can go up a tree
As you can see I am getting pretttttttty fed up with nrand48, C, C
programmers and the fricking heat inside and outside this fricking
appartment
At this point I fucking lost it and made the fucking RANT LOL
YESSSSSSSssssssssssssssssssssssssssssssssssssssssssssssssssssss
Bye,
Skybuck
1. The documentation is SHIT
2. The implementation is SHIT
=D
IN OTHER WORDS UNIX IS SHIT !
IF THESE FUCKING IDIOTS CANT EVEN MAKE A FUCKING RANDOM FUNCTION AND
DOCUMENT IT WELL SO THAT PEOPLE CAN UNDERSTAND IT
THEN WHAT CAN THESE STUPID UNIX FUCKHEADS DO RIGHT ????
Lol, Thank you
I'll leave the rest of my calm post in which I wrote before this rant LOL
Though I think the RANT is more important
Ok,
I am at a total loss now
3 Different results actually 4... and the documentation ain't helping.
1. Different results on linux/knoppix
2. Different results on windows xp
2.1 Different results when using brackets
2.2 Different results if state48 is changed/initialized ???
How is one supposed to use nrand48( ??? ) ?????????????
With some parameters ???
The documentation is not clear about this or the function is mal functioning
I think the documentation says nrand48 can be used without initialising
anything ???
"
The erand48(), nrand48() and jrand48() functions do not require an
initialisation entry point to be called first.
"
???
int main()
{
uint16 state48[3];
//state48[0] = 0;
//state48[1] = 0;
//state48[2] = 0;
printf("%d \n", nrand48(state48) );
printf("%d \n", nrand48(state48) );
printf("%d \n", nrand48(state48) );
printf("%d \n", nrand48(state48) );
printf("%d \n", nrand48(state48) );
// the windows xp / visual c/c++ 6.0 output is:
// source version 0.01 - version 0.03:
// without brackets:
// 1288336289
// 893806678
// 810173679
// 37620279
// 474250687
// source version 0.04:
// with brackets:
// 257717153
// 323532094
// 23385569
// 378241935
// 2040867715
// the linux/knoppix 3.1 kdev ??? output is:
// source version 0.03:
// default nrand48:
// 1367402799
// 1703755632
// 1875357054
// 1202986045
// 1604074163
return 0;
}
Sigh,
It would be nice if nrand48 and the test program produced the same results
on
1. Linux/Knoppix
2. Windows XP
Isn't it supposed to produce the same output ?
If Yes,
Then possibly test program flawed
Then possibly nrand48 routine flawed
If no
Then quite with unix shit and move on =D replace it/use it whatever...
NONONO can't do that...
I need a good nrand48() function to make sure the program works like it was
designed.
Though seeing a coder not using ( ( ( ) ) ) to make the calculations more
robust starts to make me wonder about the coder's quality level.
If I ever design a programming language I'll make damn sure that this code
can't compile ever
a = f << b | c >> d * e / k; // or any other code like it
Only this will be allowed:
a = ( ( f << b ) | ( c >> d ) * e ) / k; // or whatever way it was ment to
do the calculations as long as 2 operands are nicely wrapped in ()
All math people can go up a tree
As you can see I am getting pretttttttty fed up with nrand48, C, C
programmers and the fricking heat inside and outside this fricking
appartment
At this point I fucking lost it and made the fucking RANT LOL
YESSSSSSSssssssssssssssssssssssssssssssssssssssssssssssssssssss
Bye,
Skybuck