[chuck-users] easy random numbers
heuermh at gmail.com
Mon Nov 19 14:37:27 EST 2007
> > I suppose that you could run some sort of batch script, or say a
> > couple lines of Python, that either gets the current system time, or
> > creates some type of random seed number; then generates a ChucK file
> > with that seed number as a global variable.
> Perhaps a script could call the .ck with the system time as a parameter?
> That sounds reasonable enough, I'm no BASH/ batch wizzard but that should be
> quite possible.
The unix command
$ date +%N
gives the nanoseconds for the current time (000000000..999999999),
that should be a good seed.
More information about the chuck-users