Basically i found this small script on Google today, i just want to know a few answers:
PHP Code:
<?php
$random_number = rand(1,10);
$random_numbertwo = rand(1,10);
print "<p>$random_number.</p>\n";
print "<p>$random_numbertwo.</p>\n";
?>
If i wanted to use this script at the backend of my website.. so when i press a button it will refresh the numbers and place the 2 numbers on the main page of the website so both numbers are seeable by the public. How would i do this?
Is this safe? Can it be broken so people from the public can see what the next number will be?
Is there a better way of doing it?
Many thanks,
Jamie Hann