How to export coin-toss data and check it in a spreadsheet
By Quick Coin Toss
Published
To export coin-toss data and check it in a spreadsheet, follow these steps to save a full batch, import CSV as text, and verify its contents.
Steps
Generate a Batch of Tosses
Select the Simulator, choose the intended count of tosses, and generate once. Use JSON and CSV files for that batch alone.
Download the Data Files
Download both the JSON and CSV files. The JSON preserves original data, while the CSV is a text representation.
Import CSV into Spreadsheet
In Excel, open the Text/CSV import dialog. Disable automatic type detection and check the preview to confirm every column is set to Text before loading.
Verify Data Structure
Check that the CSV has one data row per outcome with fields like run_id, side, and created_at_utc. The header is not an outcome.
Count Heads and Tails
Count the number of rows where side is 'heads' and 'tails'. Ensure their sum equals the requested count and matches the total data rows.
Calculate Heads Percentage
Calculate the Heads percentage as (Heads / Total outcomes) * 100. Do calculations in separate cells to preserve original text columns.
Compare with Batch Summary
Replace illustrative counts with your actual counts and compare them with the tool's batch summary. If totals differ, check that the correct run was selected and rows were not dropped or duplicated.
Illustrative example — not observed results
| Heads rows | Tails rows | Total data rows | Calculated Heads percentage |
|---|---|---|---|
| 12 | 8 | 20 | 60% |
Keep the original data
Spreadsheet programs can interpret CSV text differently when you open a file directly or save it again. Keep the JSON download as your original and use the Excel text import steps above to inspect the CSV.
Data Verification Importance
Always verify that the header row is excluded and that the correct run was selected. Temporary results can disappear on navigation, so save needed data before leaving the tool.
Handling Custom Labels
Some labels have a leading apostrophe in CSV. Check the JSON file for the original label text.
Open Simulator to make and download a batch
Sources
- Microsoft Learn: Power Query Text/CSV connector (accessed ).
The Text/CSV import dialog can disable automatic type detection, leaving columns as Text. Its available capabilities can differ between products; inspect the import preview.
- OWASP: CSV Injection (accessed ).
Spreadsheet software can interpret CSV text as formulas, and there is no universal sanitization method for every consumer. This supports retaining the site's explicit text-import instructions and original JSON.
- Quick Coin Toss: How it works (accessed ).
The current result and retained history have separate downloads. JSON preserves original data; CSV is a text representation.