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.
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.
What are you specifically trying to do?
choice = rand(1..$cmdargs.length)
$bot < 'Result: ' + $cmdargs[choice-1] brings back the error
http://puu.sh/3rEPp.png when ran