You can not simply use a Zorba module with eXist. I also don't think that the HTTP client EXPath module is supported by eXist. Take a look at the documentation of your processor (eXist or Sausalito) and only use the modules they support. If they are built-in, a simple import module namespace
as you used it should be sufficient, however, if you want to include a generic module you also have to provide the module sources at some processor-dependent directory.
For eXist, take a look at http://exist-db.org/exist/apps/doc/extensions.xml to understand how you can include your modules. eXist also has random functions, but they are built in the math module.