I would like to generate random numbers between two decimal numbers in Ocean Script
eg: 2.5 to 3.5 i need to use this to vary lengths and widths of transistors from ocean script.(RAND_MAX is not known like in C)
Please help me doing this
most random number generators either give a result between 0-1 or give a result that is based on some limit, i.e. random(10) would give a result that is in the range 0-9.
If you want 2 significant digits then you can do something like 2.5+random(11)/10 (i.e. 2.5-3.5 inclusive).
Though I'm not sure if Ocean script allows for math to be performed. I did find that random(x_number) is the function used to generate random numbers.