Posted By

Scooter on 12/27/08


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

elightbo
benrudolph


Random Integer


 / Published in: ASP
 

URL: http://reusablecode.blogspot.com/2008/12/striptags.html

  1. <%
  2. ' ASP Function - Random Integer
  3. '
  4. ' Copyright (c) 2008, reusablecode.blogspot.com; some rights reserved.
  5. '
  6. ' This work is licensed under the Creative Commons Attribution License. To view
  7. ' a copy of this license, visit http://creativecommons.org/licenses/by/3.0/ or
  8. ' send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California
  9. ' 94305, USA.
  10.  
  11. ' Generate a random integer within a specified range.
  12. function randInt(min, max)
  13. Randomize
  14. randInt = Int((max - min + 1) * Rnd + min)
  15. end function
  16. %>

Report this snippet  

You need to login to post a comment.