The advantage to Active Server Pages is that the code is interpreted server side and the result is written to the browser. Therefore the code is invisible and secure. So, here's how it works. You need a file of scripture verses in the prescribed format. For this routine it's the verse followed by the reference in parentheses.
Comments are on the lines beginning with '.
The array contains all the verses in separate elements. Then we 'generate a random number between 0 and upperlimit. I'm not the smartest guy in the world, so this may not all make sense. Drop me a line if you need more help.