![]() |
|
Star Wars Name Generator Website Code - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Webmasters (https://hackforums.net/forumdisplay.php?fid=141) +---- Forum: Website Construction (https://hackforums.net/forumdisplay.php?fid=50) +---- Thread: Star Wars Name Generator Website Code (/showthread.php?tid=5931416) |
Star Wars Name Generator Website Code - deityjake - Jan 19, 2019 Hi guys, need a starwars name generator HTML Code for a website project for my college. I have no experience with coding so i really need some help if u can just PM me or post a reply. Thanks. RE: Star Wars Name Generator Website Code - phlex - Jan 19, 2019 (Jan 19, 2019 09:33 AM)deityjake Wrote: Hi guys, I will give you an example & you can just fill in the values to make it better :) PHP PHP Code JS Code var firstnames = ["Anakin", "Padme", "Cassian", "Raymus", "Darth", "Sio", "Jar Jar", "Commander", "Count", "Boba"],Both of these examples choose a random first name, a random last name, and combine them. If you want REAL Star Wars names (example: Jar Jar Binks, never Jar Jar Fett) then you would put the first & last names in one array & just use the random function for the single array :) RE: Star Wars Name Generator Website Code - realsunjester - Jan 19, 2019 with a better seed.. Code <?phpRE: Star Wars Name Generator Website Code - Owl - Jan 19, 2019 JS: Code const f_names = ['jake', '""deity""'];oops didn't see phlex posted a JS one as well. RE: Star Wars Name Generator Website Code - deityjake - Jan 20, 2019 Thanks so much man appreciate it bigtime |