<?xml version="1.0" encoding="UTF-8"?>

<?context-directive job ctxfile x-setups.ctx ?>

<cd:interface xmlns:cd="http://www.pragma-ade.com/commands">

    <cd:command name="getrandomcount" level="system" category="counter" file="supp-ran.mkiv">
        <cd:arguments>
            <cd:csname/>
            <cd:resolve name="argument-number"/>
            <cd:resolve name="argument-number"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="getrandomdimen" level="system" category="counter" file="supp-ran.mkiv">
        <cd:arguments>
            <cd:csname/>
            <cd:resolve name="argument-dimension"/>
            <cd:resolve name="argument-dimension"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="getrandomnumber" level="system" category="counter" file="supp-ran.mkiv">
        <cd:arguments>
            <cd:csname/>
            <cd:resolve name="argument-number"/>
            <cd:resolve name="argument-number"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="getrandomfloat" level="system" category="counter" file="supp-ran.mkiv">
        <cd:arguments>
            <cd:csname/>
            <cd:resolve name="argument-number"/>
            <cd:resolve name="argument-number"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setrandomseed" level="system" category="counter" file="supp-ran.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-number"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="getrandomseed" level="system" category="counter" file="supp-ran.mkiv">
        <cd:arguments>
            <cd:csname/>
        </cd:arguments>
    </cd:command>

    <cd:command name="randomseed" type="environment" begin="push" end="pop" level="system" category="counter" file="supp-ran.mkiv"/>

    <cd:command name="reuserandomseed" level="system" category="counter" file="supp-ran.mkiv"/>

    <cd:command name="randomnumber" level="system" category="counter" file="supp-ran.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-number"/>
            <cd:resolve name="argument-number"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="mprandomnumber" level="system" category="counter" keywords="metapost" file="supp-ran.mkiv"/>

</cd:interface>
