<%@ LANGUAGE = VBScript %> <% Option Explicit %> Using Components Using Components with ASP

This script uses the Tools component that comes with IIS to generate a random number.

<% Dim example ' Instantiate Component on the Server Set example = Server.CreateObject("MSWC.Tools") %> Random Number = <% = example.Random() %>