All add-ons

Low Random

Compatibility: EE1, EE2
Latest release: 2.3 (released 2015-07-08)
Licensing: CC Attribution-Share Alike 3.0

Installation

The download contains both the EE1 and EE2 version.

ExpressionEngine 2

  • Download and unzip Low Random
  • Copy the ee2/low_random folder to your /system/expressionengine/third_party/ directory
  • All set!

ExpressionEngine 1

  • Download and unzip Low Random
  • Copy the ee1/pi.low_random.php file to your /system/plugins/ directory
  • All set!

Template tags

File tag

Parameters for {exp:low_random:file} tag
Parameter Description
folder Either the server path of the folder, or the numeric Upload Destination id. Required.
filter Any number of sub strings the file name should contain, separated by vertical bars.
{exp:low_random:file folder="/some/path/to/images" filter="masthead|.jpg"}
{exp:low_random:file folder="3" filter=".pdf"}

Item tag

Parameters for {exp:low_random:item} tag
Parameter Description
items Any number of items, separated by vertical bars.
{exp:low_random:item items="cat|dog|ferret|raptor"}
{exp:low_random:item items="Yes|No|Maybe|Try again later|You're kidding, right?"}

Items tag

Parameters for {exp:low_random:item} tag
Parameter Description
separator Character used to separate values. Defaults to new line.
trim Set to “no” if you don’t want the tagdata to be stripped of white space at the beginning and end.
{exp:low_random:items}
  Cat
  Dog
  Ferret
  Raptor
{/exp:low_random:items}
{exp:low_random:items separator=","}
  Cat, Dog, Ferret, Raptor
{/exp:low_random:items}

Letter tag

Parameters for {exp:low_random:letter} tag
Parameter Description
from Letter to start the range with, defaults to a.
to Letter to end the range with, defaults to z.

Note: this tag returns a letter in the same case as the given parameters.

{exp:low_random:letter}
{exp:low_random:letter from="A" to="F"}

Number tag

Parameters for {exp:low_random:number} tag
Parameter Description
from Number to start the range with, defaults to 0.
to Number to end the range with, defaults to 9.
{exp:low_random:number}
{exp:low_random:number from="100" to="999"}