I want to generate a random number with range from 1 to 40.
it will be used in either php or html page.
i just showing random image to the user by using his/her name.
if the two or more users with "same name" then the same image will be shown to the users who have same name. i.e., same image for all the users with same name.
for an example, consider there are 3 users with name 'david' and 2 users with with name 'sandy'. in this condition users name with david will be use same 3 images and users name with 'sandy' will be use another random image.
any suggestions...