How do you add a random generator?

2 replies
I am currently creating a website and im trying to add a section where it gives you a random selection (from given options)

Does anybody know how to do this? (html code?)
#add #generator #random
  • Profile picture of the author simplybeastz
    Originally Posted by IsayHey View Post

    I am currently creating a website and im trying to add a section where it gives you a random selection (from given options)

    Does anybody know how to do this? (html code?)
    Not with HTML , you would have to do it With PHP or something like that. HTML only displays images and so on. It's a really old language.
    {{ DiscussionBoard.errors[4262225].message }}
    • Profile picture of the author dmman
      You'd have to do this with either server side processing (using whatever code is appropriate to your platform (PHP, ASP, etc) .. or you could probably accomplish something with client side scripting (eg javascript) .. there's a lot of options depending on what exactly you want to accomplish .. and pros + cons for them ..

      server side processed content would become prt of the actual output HTML and thus crawlable by SEs .. client side scripting would not normally be seen by bots .. which could be an issue for you ..

      try searching for phrases like "random selection javascript" or "randomizor scripting" .. etc .. to get some ideas of what you could do.
      {{ DiscussionBoard.errors[4262339].message }}

Trending Topics