[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: random seed
From: |
Nelson Minar |
Subject: |
Re: random seed |
Date: |
Wed, 31 Jan 96 20:51:46 MST |
simtools.m has an example of a random number generator being
allocated.
randomGenerator = [[PMMLCG1 alloc] init]; // seeds from clock
uniformRandom = [[[Uniform alloc] init] setGenerator: randomGenerator];
so if instead of init, you used initSeed:, you'd get what you want.
Note that the random number library is the one case where we don't use
the create: style of making things. I did this because I still think
the random number library might be useful outside of Swarm.