Hi,
I'm using OpenModelica, and am trying to use the random function as per this post:
http://www.mail-archive.com/openmodelicain...e/msg00564.html

I have included the code for the function in my project, but run into the same issue with overdetermined system the user in that post did.
I'm new to modelica, can anyone point me to what I'm doing wrong?

My test model is:
(Random.random code as per the post above)

model Rand
import Random;
type Seed = Real[3];
Real count;
Seed count2;
equation
(count, count2) = Random.random();

end Rand;

simulate(Rand, startTime=0, stopTime=7);

record SimulationResult
resultFile = "Simulation failed.
Too many equations, overdetermined system. The model has 4 variables and 10 equations
"
end SimulationResult;

Any help appreciated.
Thanks,
Colin.