🏪 Lanren Toolkit

🎲 Random Picker

Roll a dice, flip a coin, or let the tool decide what to eat today. Let it make a fair, random choice for you.

Ad・Leaderboard 728×90
Ad・Rectangle 336×280

📖 How to Use

  1. Choose a type from the dropdown: "🎲 Roll Dice", "🪙 Flip a Coin", or "🍜 What to Eat Today" — the fields below change to match.
  2. Roll Dice: set the number of dice (1–6, default 2) and the number of sides (4/6/8/10/12/20, default 6).
  3. Flip a Coin: set how many coins to flip at once (1–10, default 1).
  4. What to Eat Today: first pick a category — 🧍 Solo (auto-fills a food list based on your detected region), 🎉 Group (options for eating with others), or 🥗 Low-Calorie & Healthy. The list appears in the text box below, one item per line, and you're free to add, remove, or edit any line yourself.
  5. Click the button (labeled "🎲 Roll Dice", "🪙 Flip Coin", or "🍜 Pick For Me" depending on the mode) to run the spin animation and get a result — nothing updates automatically until you click.
  6. Reading the result: dice mode lists each die's value and the total when rolling more than one; coin mode lists every flip and tallies heads vs. tails; the food mode simply announces the winning item.
Note: the Solo category for "What to Eat Today" auto-detects your region from your IP address and fills in locally popular dishes (e.g. ramen and popcorn chicken for Taiwan, sushi and ramen for Japan) — but that's just a starting suggestion. You can freely edit the list in the text box, and your edits won't be overwritten unless you manually switch category (a confirmation popup warns you first, so an accidental click won't wipe out your changes). If your region can't be detected, a generic default list is used instead.

📖 Deep Dive: How "Random" Is Computer-Generated Randomness?

Math.random() is technically "pseudorandom"

Every result from this tool — dice rolls, coin flips, or a food pick — comes from the browser's built-in Math.random() function (for example, dice use Math.floor(Math.random() * sides) + 1 to get a value). Numbers produced this way are technically called "pseudorandom": they aren't drawn from a truly unpredictable physical source like radioactive decay or atmospheric noise, but generated by a fixed mathematical formula that starts from an initial value (a seed) and grinds out a long sequence of numbers that looks chaotic but is, underneath, deterministic. For everyday use, that's more than fair enough — you genuinely can't predict or manipulate what the next roll will be, and over many rolls the results converge on an even distribution just like true randomness would. Only high-security contexts (like generating encryption keys) need a stronger "cryptographically secure" random source; rolling a die, flipping a coin, or picking dinner doesn't need to worry about the distinction at all.

"Feels random" and "is random" often disagree

Human intuition about randomness is famously bad. If you flip a coin and get five heads in a row, most people's gut reaction is "that can't be random, something's off" — but in a truly random sequence, streaks like that are entirely within normal probability (five heads in a row has a 1-in-32 chance, which isn't rare at all). Conversely, when people try to "randomly" pick numbers by hand, they tend to deliberately avoid repeats and force an artificially even spread — and that kind of sequence, when tested statistically, actually shows too much pattern to be genuinely random. This is part of why letting a program generate the pick tends to land closer to true fairness than picking "by feel" (e.g. "we had ramen last time so let's rule it out this time") — the tool has no memory bias nudging it away from repeats.

A worked example: using it to break a decision deadlock

Say three friends are stuck on what to have for dinner, each deferring to the others. Instead of spending ten minutes going back and forth, switch to "🍜 What to Eat Today" mode, pick the "🎉 Group" category — it fills in options like hot pot, all-you-can-eat BBQ, and buffet — then hit "Pick For Me" and let the spin animation run for a few seconds before it announces a winner. For extra ceremony, "🎲 Roll Dice" can decide who gets veto power (roll a single 6-sided die, highest number gets one re-roll), or "🪙 Flip a Coin" can settle a quick either/or (down to two restaurants — heads picks A, tails picks B). Handing the decision to the tool removes the social friction of "who actually has to decide" and skips the pointless back-and-forth when nobody has a strong preference anyway.

Where the "What to Eat Today" lists come from

Solo mode tries to detect your region from your network IP address (via the public ipapi.co lookup service) and fills in a locally popular food list based on the detected country code — the tool has built-in lists for Taiwan, Japan, Korea, mainland China, Hong Kong/Macau, the US/UK, and Singapore/Malaysia/Thailand/Vietnam, among others. If detection fails or your region isn't covered, it falls back to a generic default list. That list is only a starting point — you're free to add, edit, or delete items in the text box, and as long as you don't manually switch category afterward, your edits are preserved rather than overwritten. The idea is that "random" should mean random among things you'd actually eat, not limited to whatever the tool guessed by default.

❓ FAQ

Is the dice roll actually random, or is the result precomputed?

It's computed live — nothing is precomputed. Every time you press the button, the tool calls Math.random() fresh to generate a new result. That's the browser's built-in pseudorandom generator, which is more than fair and unpredictable enough for everyday things like dice and coin flips.

Why does the "What to Eat Today" list show dishes that don't match where I actually am?

Solo mode detects your region from your current network connection's IP address. If you're using a VPN, or your ISP's IP-to-location data is inaccurate, the detected region may not match where you actually are. You can just edit the list directly in the text box — your changes are preserved and won't be overwritten automatically.

If I switch the "What to Eat Today" category, will my edited list be lost?

A confirmation popup appears first, warning that "switching category will overwrite your current list." The list only actually changes if you click OK. If you want to keep your edits, just click Cancel and the category and list stay exactly as they were.

What's the maximum number of dice or coins I can use at once?

The input fields default to a visible max of 6 dice and 10 coins, but the underlying code actually allows up to 50 of each — typing a larger number than the field suggests is still accepted, just capped internally at 50.

Can I run it again after getting a result?

Yes, there's no limit on how many times you can click the button. Each click reruns the spin animation and generates a fresh result, replacing whatever was shown before.

Ad・Leaderboard 728×90