I want to make some this like this.
Write a JavaScript program that will pick randomly ONE museum from a list of 10 museums in Kuala Lumpur to visit. The choices are listed below:
a) Bank Negara Money Museum (Muzium Matawang Bank Negara)
b) Biomedical Museum
c) Islamic Arts Museum Malaysia (Muzium Kesenian Islam Malaysia)
d) Maybank Numismatic Museum
e) Malaysia Telecommunications Museum (Muzium Telekomunikasi Negara)
f) National Museum (Muzium Negara)
g) National Textile Museum Kuala Lumpur (Muzium Tekstil Kuala Lumpur)
h) National Museum of History (Muzium Sejarah Nasional)
i) Royal Malaysian Air Force Museum
j) Royal Malaysian Police Museum (Muzium Polis Diraja Malaysia)
i want to use the selection statement for the choice of museum.
i want to use the Math.floor and Math.random methods to get the random number (I dont Understand).
i want my page have an html form with a simple one-line text box that should display the name of the museum.
i want have a button that when pushed will invoke a JavaScript function that randomly chooses and displays the museum name into the text box.