<%@ LANGUAGE = JScript %> Using Components Using Components with ASP

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

<% // Instantiate Component on the Server example = Server.CreateObject("MSWC.Tools"); %> Random Number = <% = example.Random() %>