English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I was told that I needed either a JavaScript function or a server side random number generator for a Doubleclick ad (Doubleclick prefers the server side). I'm aware that searching Google will bring up a lot of results regarding Javascript RNG code. However, I want to get this set up as soon as possible. Can anyone provide instruction on how to get this done in the easiest, yet most effective manner? Thank you so much for your time. I use Dreamweaver 8 on Windows XP, S.P. 2. The documentation that Doubleclick provided was confusing.

2007-05-11 00:07:43 · 2 answers · asked by kee 7 in Computers & Internet Programming & Design

2 answers

function random(lessthan){
return Math.floor (Math.random()*lessthan)
}


var randomNumberLessThanFive = random(5)

2007-05-11 07:44:34 · answer #1 · answered by jake cigar™ is retired 7 · 3 0

I can't help you in javascript. but in php:
$min=1;
$max=100;
$randomNum=rand(1,100);
?>
Cheers,

2007-05-11 01:02:09 · answer #2 · answered by John Doe 2 · 0 1

fedest.com, questions and answers