[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Random question?
From: |
Marcus G. Daniels |
Subject: |
Re: Random question? |
Date: |
10 Oct 1998 11:56:37 -0700 |
>>>>> "NA" == Nasty Ace <address@hidden> writes:
NA> I'm using the built-in UniformDblRand, but using the --varySeed
NA> command line argument does not seem to change my results between
NA> runs.
It's working for me with sparc-sun-solaris2.6 and Swarm 1.3...
address@hidden $ ./a.out
0.353868 0.313851 0.007383 0.236007 0.304299
address@hidden $ ./a.out
0.353868 0.313851 0.007383 0.236007 0.304299
address@hidden $ ./a.out --varyseed
0.953733 0.116825 0.082303 0.789355 0.432453
address@hidden $ ./a.out --varyseed
0.496029 0.102225 0.930873 0.392151 0.018338
#import <simtools.h>
#import <random.h>
int
main (int argc, const char **argv)
{
int i;
initSwarm (argc, argv);
for (i = 0; i < 5; i++)
printf (" %f", [uniformDblRand getDoubleWithMin: 0.0 withMax: 1.0]);
printf ("\n");
}
/*
Local Variables:
compile-command: "gcc -g -Wno-import -L$SWARMHOME/lib -I$SWARMHOME/include
-L/usr/local/blt2.3/lib -L/usr/local/lib random.m -lsimtools -lsimtoolsgui
-lactivity -ltkobjc -ltclobjc -lrandom -lobjectbase -ldefobj -lcollections
-lmisc -ltk4.2 -ltcl7.6 -R/usr/local/blt2.3/lib -lBLT -lsocket -ldl -lnsl
-L/opt/X11R6/lib -lXpm -lX11 -lffi -lpng -lz -lm -lobjc"
End:
*/
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
==================================