rand() in Vissim 6
I was just wondering if someone could tell me what rand() (in a const) returns in in Vissim 6? What are the limits and what can I put in rand(x). What can x be?
Thanks
Brian
I was just wondering if someone could tell me what rand() (in a const) returns in in Vissim 6? What are the limits and what can I put in rand(x). What can x be?
Thanks
Brian
rand(n) or rand(n,m) result
rand(n) or rand(n,m) result in a matrix populated with random numbers between 0 and 1. One argument gives a square matrix of order n, two arguments result in an n row by m column matrix.
Unfortunately, this seems not
Unfortunately, this seems not to be the case in Vissim Version 6. We use this version at school, while the trial I have is version 7.0.
When feeding in values to rand() in vissim version 6.0, I get an error which says; "Warning: Arg type mismatch(int vs double" for example when I use rand(1). Unfortunately, I am unable to find the version 6.0 manual to understand what it is ouputting. I believe the values are 0-32768, although I am unsure.
Thanks
Brian
Download the v6 update
You can Download the v6 update here