Random Persian Digit Generator
Choose one Unicode 18.0 persian digit from its explicitly bounded repertoire using injected randomness.
Description
Generate one Persian decimal digit from U+06F0 through U+06F9.
Persian decimal-digit fixtures use the Extended Arabic-Indic digits encoded separately from Latin 0–9 and the basic Arabic-Indic digit set. This generator chooses one of the ten characters for recognition or rendering tests.1
The fixed range U+06F0–U+06F9 contains ten digits in numeric order from zero to nine. Output value is a one-character string, not a number. It excludes the basic Arabic-Indic U+0660–U+0669 digits, letters, and punctuation.
When to use Random Persian Digit Generator
Use it to test Persian digit rendering, Unicode-preserving storage, or a practice prompt restricted to this ten-digit repertoire.
How to use Random Persian Digit Generator and understand its results
- Run the generator without input fields; API calls supply {}.
- Read or copy value as Unicode text. If you need a numeric value, interpret it against the documented zero-to-nine range rather than assuming ASCII parsing will accept it.
- Run again for more examples; duplicates and zero are allowed.
digit offset = floor(randomDraw × 10); code point = U+06F0 + offset The generator converts the selected code point to a string. A uniform random source gives equal probability to the ten offsets.
{
"input": {},
"randomDraw": 0.25,
"output": {
"value": "۲"
}
} Draw zero returns ۰, while a draw just below one returns ۹. An injected draw of one, a negative value, or a nonfinite value is rejected.
Limitations and assumptions
The default source is Math.random; no seed input or cryptographic entropy guarantee is provided. Repeated runs may select the same result, and the distribution depends on the random source.
This does not transliterate numbers, format grouped or signed values, generate fractions, or guarantee that a parser or font supports the selected digit.
Alternative or Complementary methods
Use the broader script-character generator when letters and signs are intended. An integer generator gives numeric data with caller-chosen bounds rather than a script-specific text digit.
References
-
Persian Unicode character code chart — Unicode Consortium
Similar or alternative tools
- Persian script character generator
Choose from the broader encoded script repertoire.
- Random Number Generator
Generate an integer in explicit inclusive numeric bounds.