Random Sinhala Digit Generator
Choose one Unicode 18.0 sinhala digit from its explicitly bounded repertoire using injected randomness.
Description
Generate one Sinhala decimal digit from U+0DE6 through U+0DEF.
The Sinhala Lith digit repertoire encodes decimal digits separately from Latin digit characters. This tool supplies a single Lith digit for recognition exercises and font or encoding checks.1
The fixed range U+0DE6–U+0DEF contains ten digits in numeric order from zero to nine. Output value is a one-character string, not a number. It selects Sinhala Lith digits only, not historical Sinhala archaic numbers or Latin digits used in other contexts.
When to use Random Sinhala Digit Generator
Use it to test Sinhala digit rendering, Unicode-preserving storage, or a practice prompt restricted to this ten-digit repertoire.
How to use Random Sinhala 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+0DE6 + 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
-
Sinhala Unicode character code chart — Unicode Consortium
Similar or alternative tools
- Sinhala script character generator
Choose from the broader encoded script repertoire.
- Random Number Generator
Generate an integer in explicit inclusive numeric bounds.