Fix undefined behavior in setting neuron params.

Calling the RNG inside the call to Neuron#setParams exploits undefined
behavior in C++. These calls may be ordered as the compiler sees fit.
Change makes setParams more deterministic.