Random Number Generator (Crypto-secure)
Generate random numbers 1-10,000 using crypto.getRandomValues or a seeded PRNG (mulberry32). 6 presets: dice, coin, lotto, PIN. Unique + sort options.
Generate random numbers using crypto.getRandomValues (secure) or seeded PRNG (reproducible). Great for lotteries, dice, test data.
When to use it
- Lottery: pick 6 numbers from 1-45 with no duplicates (Lotto preset ready).
- Games: dice rolls, coin flips, board games.
- Test PIN / OTP: 4-6 digit codes for UI testing.
- Data sampling: pick N random rows from a database.
- A/B testing: assign users to groups randomly.
Crypto-secure vs seeded
- Empty seed = uses
crypto.getRandomValues— TRUE random from OS entropy. Not reproducible. Use for lottery, passwords. - With a seed = uses Mulberry32 PRNG. Same seed → same numbers. Use for reproducible test data, simulations.
Tips
- Unique: turn on for lottery — guarantees no duplicates.
- Sort: ascending — easier to read when picking many numbers.
- Decimals: turn off "Integers only" for fractional numbers (coordinates, percentages).
Who this is for
Vietnamese users needing quick calculations in local context: salary, PIT, loan interest, BMI, bill splitting, FX rates.
FAQ
Which year do the tax/SI rates apply?
Vietnam 2026 regulations: SI 8%, HI 1.5%, UI 1%, progressive PIT 7 brackets. Updates within 48h of regulation changes.
Can results be used officially?
Estimates are accurate for typical scenarios. For contracts/year-end settlements, consult an accountant.
Related tools
See all tools →VN Loan & Deposit Calculator
Deposit + loan repayment, decreasing & flat rate, full amortization.
HOTVN Salary Calculator
Vietnam 2026: SI 8%, HI 1.5%, UI 1%, progressive PIT, personal + dependent deductions.
NEWAge & Date Diff Calculator
Exact age (Y/M/D), total days lived, next birthday; or diff between 2 dates.
NEWVND Currency Converter
Convert VND ↔ 9 currencies. Editable rates, persists locally.