Hello bpwoods97 !

It appears you are running Haskell using the CmdArgs from the windows command line. You may benifit by checking the link below on diagnosing the code error.

http://community.haskell.org/~ndm/

If you are using Ruby (Ruby is the .rb file format seein your snapshot) you will want to run teh code from a webserver and not your command line. Ruby Random code is at the following link.

http://www.rubyinside.com/21-useful-ruby-and-rails-code-snippets-24.html

What are you specifically trying to do?