pfortier wrote:It seemed possible to play a random number into a variable and have this variable act as a source to a NetCon.
According to the documentation for the NetCon class, the source can be
1. a range variable
2. "a PointProcess with a NET_RECEIVE block which contains a call to net_event"
3. "a PointProcess which contains a "x" variable which is watched for threshold crossing, but this is obsolete since NET_RECEIVE blocks which explicitly call net_event are much more efficient since they avoid the overhead of threshold detection at every time step."
or
4. "a NULLObject. In this case events can only occur by calling event from hoc."
I thought you were trying to do something like (4), i.e. make your own sequence of event
times by sampling a random distribution. That's what most questions like this turn out to
be about.
If you want to do (1), just make a toy section and use the Random class to drive one of
its range variables. If your distribution can generate negative values, you'll probably want
to avoid driving diam or cm. I'm not sure that driving v will work--will the integrator
counteract the change you made with the Random variable? Try it and see what
happens; if it doesn't work, you might just insert pas, and then drive e_pas.