<%! private int randomNum = coreservlets.RanUtilities.randomInt(10); %>

Semi-Random Number:
<%= randomNum %>