Search Results for

    Show / Hide Table of Contents

    Random

    Aliases

    RANDOM, RND, S!RAND

    Overview

    The Random function will, as one might expect, place a random note. It will place a random note between the given min and max notes.

    Using RANDOM() with no arguments is functionally identical to using a ? character.

    Arguments

    Name Type Description
    MinValue (optional) integer The minimum value of the random function. Default is 1.
    MaxValue (optional) integer The maximum value of the random function. Default is 5.
    Seed (optional) integer The seed to set while doing the random. A value of -2147483648 will use a random seed. This is also the default value.

    Example 1

    RND()RND()RND()RND()RND()
    

    5 random notes. As the function is the "Random" function, it will be completely random every time.

    Random Example 1

    Example 2

    ARP(RND(1,9),8)
    

    8 random notes between 1 and 9.

    Random Example 2

    Using the ? Character

    Using ? does the same as using the Random function with default parameters RANDOM(1,5).

    Example 3

    ??????????
    

    10 question marks makes 10 random notes between 1 and 5.

    Random Example 3
    ☀
    ☾
    In This Article
    Back to top
    SideyBot by Sidney600 and RileyTheFox
    ☀
    ☾