Page 1 of 1

What is the argument to set_seed() ?

Posted: Wed May 13, 2015 9:14 am
by Feanor
Hello to all,

what is the argument to the function set_seed() used in pregen.mod, for example? Does it need to be an integer (I don't know about random number generators)? It works with passing a floating point number to it, but is it maybe truncated?

Best regards

Re: What is the argument to set_seed() ?

Posted: Wed May 13, 2015 10:55 am
by ted
If set_seed() is defined by user-written code, then the user-written code should provide some clue.
If set_seed() is the set_seed() that is built into NEURON, the argument should be an integer.
Be sure to verify this for yourself by running some tests.