Random Beverage Generator
Generate random drink ideas from 200+ beverages. Filter by category, temperature, and alcohol content. Get ingredients and recipes instantly.
About
Selecting a beverage from an extensive menu or a well-stocked pantry involves a combinatorial problem most people solve with habit bias. Studies in decision fatigue (Baumeister, 2011) confirm that repeated low-stakes choices degrade subsequent decision quality. This generator removes that friction. It draws from a curated dataset of 200+ beverages spanning 15 categories - from espresso-based coffee drinks requiring precise water-to-grounds ratios to cocktails governed by 2:1:1 spirit-citrus-sweetener balancing rules. Each result includes an ingredient list to verify feasibility before committing.
Randomness is sourced from the Web Crypto API (crypto.getRandomValues), not Math.random, which uses a PRNG susceptible to pattern repetition in short sequences. Filters for temperature preference, alcohol content, and category narrow the candidate pool before selection, so the output is random within your constraints. Limitation: recipes are canonical approximations. Regional ingredient availability and personal taste thresholds for sweetness (S) or acidity (A) require manual adjustment.
Formulas
The generator uses cryptographically secure uniform random selection. Given a filtered beverage pool of size n, the selected index i is computed as:
Each beverage has equal selection probability:
The spin animation uses cubic ease-out deceleration over duration T (default 2000 ms):
Where t = elapsed time in milliseconds, T = total animation duration, P(bk) = probability of selecting beverage k, n = size of filtered candidate pool, progress = normalized animation position from 0 to 1.
Reference Data
| Category | Example Beverages | Typical Temp. | Alcohol | Complexity Range |
|---|---|---|---|---|
| Espresso Coffee | Latte, Cappuccino, Americano, Macchiato | Hot / Iced | No | 1 - 3 |
| Brewed Coffee | French Press, Pour Over, Cold Brew, Turkish | Hot / Cold | No | 2 - 4 |
| Black Tea | Earl Grey, English Breakfast, Chai, Darjeeling | Hot | No | 1 - 2 |
| Green & Herbal Tea | Matcha, Sencha, Chamomile, Peppermint | Hot / Cold | No | 1 - 3 |
| Cocktails | Margarita, Old Fashioned, Mojito, Negroni | Cold | Yes | 2 - 5 |
| Mocktails | Virgin Mojito, Shirley Temple, Roy Rogers | Cold | No | 2 - 4 |
| Smoothies | Berry Blast, Tropical Mango, Green Detox | Cold | No | 1 - 3 |
| Fresh Juice | Orange, Apple-Ginger, Carrot-Beet, Watermelon | Cold | No | 1 - 2 |
| Lemonade | Classic, Lavender, Strawberry, Arnold Palmer | Cold | No | 1 - 2 |
| Soda & Fizzy | Ginger Beer, Root Beer, Italian Soda, Tonic | Cold | No | 1 |
| Beer | IPA, Stout, Wheat, Pilsner, Porter, Lager | Cold | Yes | 1 |
| Wine | Cabernet, Chardonnay, RosΓ©, Prosecco, Sangria | Cold | Yes | 1 - 3 |
| Spirits (Neat/Rocks) | Whiskey, Rum, Tequila, Gin, Vodka, Brandy | Room / Cold | Yes | 1 |
| Hot Chocolate | Classic, Mexican Spiced, White, Peppermint | Hot | No | 1 - 3 |
| Milkshakes | Vanilla, Chocolate, Strawberry, Oreo, Peanut Butter | Cold | No | 1 - 2 |
| Energy Drinks | Citrus Blast, Berry Rush, Tropical Surge | Cold | No | 1 |
| Infused Water | Cucumber-Mint, Lemon-Ginger, Berry, Citrus | Cold | No | 1 |