### Generating Random Starting Values

Posted:

**Sun Mar 12, 2017 11:03 am**Hi I'm trying to randomly generate 16 starting values for a nonlinear MRSTAR.

I understand that starting values can be specified by the following:

But I'm trying to randomly generate starting values without having to redefine each scalar value, everytime I need to update or revise the starting values.

I thought I could do something like the this:

But that doesn't seem to work. Any tips or suggestions would be appreciated.

I understand that starting values can be specified by the following:

Code: Select all

`param c(1) scalar c(2) scalar c(3) scalar c(4) scalar c(5) scalar c(6) scalar c(7) scalar c(8) scalar c(9) scalar c(10) scalar c(11) scalar c(12) scalar c(13) c(14) scalar c(15) scalar c(16) scalar`

But I'm trying to randomly generate starting values without having to redefine each scalar value, everytime I need to update or revise the starting values.

I thought I could do something like the this:

Code: Select all

`param c(1) nrnd c(2) nrnd c(3) nrnd c(4) ... c(16) nrnd`

But that doesn't seem to work. Any tips or suggestions would be appreciated.