Publisher review:Basic ASP Randomizer Example - The extra code added to the Randomize function ensures that you get as random a value as possible. Randomize(Cbyte(Left(Right(Time(),5),2))) RANDOMVALUE = Int((Highnumber - Lownumber 1) * Rnd Lownumber) The extra code added to the Randomize function ensures that you get as random a value as possible. Without it certain numbers will show up more often than others as computers are not very good at generating random values. There are many things you can do with the resulting value. This is just an example of using this code to generate a simple random banner rotator.
You also can use response.writes to eliminate a lot of the script tags but I wanted to keep this example simple for the newbie's. It is easier to understand this way. This code will basically give you a random Integer from a range of 1 to 10 that you do whatever you want with like make a random banner rotator. Remember you can change the highnumber and lownumber to generate a random number within a greater range.
Basic ASP Randomizer Example is a PHP script for Snippets scripts design by powerasp.
It runs on following operating system: Windows.
Operating system:Windows