Microsoft Word - Core PHP Programming Using PHP to Build Dynamic Web Sites

(singke) #1

the distribution of numbers is uniform, the average and median will be very close. The
sample set is really small, though, so you will see lots of variance as you rerun the script.


Listing 15.10 Getting Random Numbers


Random Identifiers


If you ever need to track users through a site, you will need to assign unique identifiers.
In a database you can store all the information you know about the user and pass the

Free download pdf