<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="https://code-reference.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://code-reference.com/feed.php">
        <title>Programming | Library | Reference - Code-Reference.com arduino:random_numbers</title>
        <description></description>
        <link>https://code-reference.com/</link>
        <image rdf:resource="https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-05-18T16:46:59+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://code-reference.com/arduino/random_numbers/random?rev=1708041857&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/random_numbers/randomseed?rev=1708041857&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico">
        <title>Programming | Library | Reference - Code-Reference.com</title>
        <link>https://code-reference.com/</link>
        <url>https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="https://code-reference.com/arduino/random_numbers/random?rev=1708041857&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:17+02:00</dc:date>
        <title>random()</title>
        <link>https://code-reference.com/arduino/random_numbers/random?rev=1708041857&amp;do=diff</link>
        <description>Description

The random function generates pseudo-random numbers. 

Syntax

random(max)

random(min, max)

Parameters

min - lower bound of the random value, inclusive  (optional)

max - upper bound of the random value, exclusive

Returns

a random number between min and max-1 (long)</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/random_numbers/randomseed?rev=1708041857&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:17+02:00</dc:date>
        <title>randomSeed(seed)</title>
        <link>https://code-reference.com/arduino/random_numbers/randomseed?rev=1708041857&amp;do=diff</link>
        <description>Description

randomSeed() initializes the pseudo-random number generator, causing it to start at an arbitrary point in its random sequence. This sequence, while very long, and random, is always the same.

If it is important for a sequence of values generated by random() to differ, on subsequent executions of a sketch, use randomSeed() to initialize the random number generator with a fairly random input, such as analogRead() on an unconnected pin.</description>
    </item>
</rdf:RDF>
