function requireValidNumber(value, ctx, message) {
if (value === "" || !Number.isFinite(Number(value))) {
ctx.setStatus(message, "warning");
return false;
}
return true;
}
function toDateInputValue(date) {
return new Date(date.getTime() - date.getTimezoneOffset() * 60000).toISOString().slice(0, 10);
}
function toDateTimeInputValue(date) {
return new Date(date.getTime() - date.getTimezoneOffset() * 60000).toISOString().slice(0, 16);
}
function breakdownDates(startDate, endDate) {
var start = new Date(startDate.getFullYear(), startDate.getMonth(), startDate.getDate());
var end = new Date(endDate.getFullYear(), endDate.getMonth(), endDate.getDate());
var years = end.getFullYear() - start.getFullYear();
var months = end.getMonth() - start.getMonth();
var days = end.getDate() - start.getDate();
if (days < 0) {
months -= 1;
var previousMonth = new Date(end.getFullYear(), end.getMonth(), 0).getDate();
days += previousMonth;
}
if (months < 0) {
years -= 1;
months += 12;
}
return { years: years, months: months, days: days };
}
window.WLTPostTools.mountRenderedTool({
root: "#wlt-tool-coin-flip",
slug: "coin-flip",
name: "Coin Flip",
family: "random",
type: "tool",
implementation: implementation
});
}
start();
})();
[/wlt_inline_script]
概述
About Coin Flip
Coin Flip is a browser-based randomizer built for fast, 无需注册的工作流程. 有了这个页面, you can flip a fair browser-based coin for fast decisions, games, and quick tie-breaks, 立即查看结果, 并继续移动而不切换选项卡.
Coin Flip works best when you need a result that feels fast, fair, and easy to repeat. These randomizer pages are especially useful for classrooms, raffles, games, small team choices, tie-breakers, and casual decision moments where the setup should stay lightweight.
如何使用
How to use Coin Flip
The fastest way to use Coin Flip is to enter your input, adjust only the settings you need, and run the main action once. After that, review the result panel, copy the output if necessary, and rerun the tool whenever you want to compare another version.
Choose how many flips you want to run in the current round.
Start the flip to generate heads and tails results instantly.
Review the totals or copy the result list if you want to share it.
Randomizer pages tend to perform best when the visitor wants a fast answer, a fair pick, or a light game mechanic with very little setup. That makes them useful across classrooms, meetings, small events, and casual personal decisions.
Teachers, friends, and teams making quick binary decisions or tie-breaks.
Anyone who wants a simple heads-or-tails result without grabbing a real coin.
有用的提示
如何获得更好的结果
Keep the option list clean and avoid accidental duplicates unless you intentionally want some choices to appear more than once.
For classrooms or raffles, show the source list on screen before running the picker so everyone can see the selection pool clearly.
If you need a different result, rerun the same list instead of editing it first so the next pick stays comparable and fair.
常问问题
常见问题
是的. You can generate multiple flips in a single round.