Wolfram Research

Function Repository Resource:

RandomRomanNumeral

Source Notebook

Gives a randomly generated Roman numeral

Contributed by: Arnoud Buzing

ResourceFunction["RandomRomanNumeral"][]

gives 0 or 1 as a Roman numeral.

ResourceFunction["RandomRomanNumeral"][range]

gives a randomly generated Roman numeral, using the given range.

ResourceFunction["RandomRomanNumeral"][range,n]

gives n Roman numerals, using range.

Details and Options

If range is an integer value, then the range goes from 1 to range.
If range is a list of two integers {n,m}, then the range goes from n to m.

Examples

Basic Examples

Randomly generate a 0 or 1, as a Roman numeral:

In[1]:=
ResourceFunction["RandomRomanNumeral"][]
Out[1]=

Generate a Roman numeral in the range 1 to 100:

In[2]:=
ResourceFunction["RandomRomanNumeral"][100]
Out[2]=

Generate 10 Roman numerals in the range 1 to 100:

In[3]:=
ResourceFunction["RandomRomanNumeral"][100, 10]
Out[3]=

Requirements

Wolfram Language 11.3 (March 2018) or above

Resource History

License Information