Syntax for random

rootstudio
rootstudio Member Posts: 6 Newcomer
edited October 22 in Scripting Workshop

I want to do something depending on the value of a ui_slider and my script chokes on this line. What's wrong with this syntax?

If ( random (0, 1000000) < $myvalue))

[...]

end if


Thanks,

Stefan

Comments

  • rootstudio
    rootstudio Member Posts: 6 Newcomer

    Oh darn, I had two parentheses at the end of the line - geez and lol.

This discussion has been closed.
Back To Top