depends on what lang you are using for the rest of the pageMaljonic said:There is no real number, it's all lies lies lies; but just say I wanted it to be around 400 plus or minus whatever, how would I write that?
I am not much of a JS coder but this should kinde do the trickMaljonic said:I was thinking a simple javascript type scenario.
<script language="JavaScript">
random_num = (Math.round((Math.random()*9)+400))
document.write(random_num);
</script>
[code]
Math.random() generates a random number between 0 and 1
it then gets multiplyed by 9 and rounded to an integer value giving a result between 0 and 9
the + 400 adds the 0-9 to 400 resulting in a value between 400 and 409
the randomizer isnt seeded so the results might not be all that random (dunno if JS seeds automaticly or not )