Certain foreign nationals coming to Thailand for the purpose of tourism can stay there for 30 days without a visa except for Brazil, Peru and South Korea who can stay for 90 days without a visa.
You will get visa on arrival irrespective of the country you are staying in, as Thailand offers this facility to everyone from any country. There arent many hassles there; some paper work is needed and you are all set to enjoy the beauty of Thailand.