Hi Alan,

if you are working in the OPI, there is no need for importing that library. Go to the Oz menu, and then Open Compiler Panel. In the Environment you will see everything that is already load.

To generate a random number try

{Browse {OS.rand}}

that will be a random integer.
To generate a random number between 0 and 10, the usual stuff is

{Browse {OS.rand} mod 10}

cheers
Boriss

Alan Oswald wrote:
Jorge
Thenk you but when I try this in the OPI I get an "Illegal use of nesting marker" error at line 1, column 0. Alan


------------------------------------------------------------------------

_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to