IoLanguage / io

Io programming language. Inspired by Self, Smalltalk and LISP.
http://iolanguage.org
Other
2.67k stars 299 forks source link

Why my code raise exception that "Object does not respond to 'Random'" #456

Closed tristoney closed 3 years ago

PedroBatista commented 3 years ago

Hi @tristoney

could you please write a description of the problem?

A code snippet that replicates your problem would be nice.

Thank you.

tristoney commented 3 years ago

Hi @tristoney

could you please write a description of the problem?

A code snippet that replicates your problem would be nice.

Thank you.

@PedroBatista

There is a part of my code is self number := Random value(1, 100) round and it throws out an exception that Object does not respond to 'Random'. Is there something wrong during my installation? I remember I followed the instruction in README. image

And the same thing happened when I used 'URL' image

ales-tsurko commented 3 years ago

You need to install Random addon first.

IIRC, for URL you need Socket.

tristoney commented 3 years ago

You need to install Random addon first.

IIRC, for URL you need Socket.

helps alot, thanks