BASIC be damned.
JavaScript:
const type = ['Delicious', 'Pretentious', 'Dirtbox', 'Slap up'];
const food = ['Chicken', 'Duck', 'BBQ', 'Pizza'];
const restaurantName = `${type[Math.floor(Math.random() * type.length)]} ${food[Math.floor(Math.random() * food.length)]}`;
console.log(restaurantName);
make me a modern restaurant name generator in the most obscure programming language
Sure! Let's use **PicoLisp** for this task — it's an extremely minimalistic Lisp dialect, and its obscurity makes it fun for this kind of quirky project. Here's how you can create a restaurant name generator using PicoLisp:
### PicoLisp Restaurant Name Generator
```lisp
# A list of food-related adjectives
(de *adjectives* '("Spicy" "Golden" "Velvety" "Smoky" "Crispy" "Sizzling" "Savory" "Lush"))
# A list of food-related nouns
(de *nouns* '("Bistro" "Grill" "Tavern" "Cafe" "Kitchen" "Bar" "Palace" "Room"))
# Randomly select an item from a list
(de randItem (lst)
(car (rand (length lst) lst))
)
# Generate a random restaurant name by combining an adjective and noun
(de generateName ()
(concat (randItem *adjectives*) " " (randItem *nouns*))
)
# Print a random restaurant name
(print (generateName))
```
### Explanation:
1. **Adjective & Noun Lists**: We define two lists, `*adjectives*` and `*nouns*`, which contain food-related adjectives and restaurant-style nouns.
2. **randItem Function**: This function picks a random element from a list.
3. **generateName Function**: Combines a random adjective with a random noun to generate a restaurant name.
4. **print**: Finally, we output the generated name.
### How to Run the Code
1. Install PicoLisp on your system (it’s a very small and portable language).
2. Paste the code into the PicoLisp REPL.
3. Each time you call `generateName()`, you'll get a new, modern restaurant name!
### Sample Output
- **Golden Kitchen**
- **Savory Tavern**
- **Crispy Room**
- **Smoky Bistro**
This is just a basic example, but you could add more sophisticated features, like generating themed names based on different cuisines, adding randomness to letter combinations, or even blending the two lists more creatively.