Jamroom Logo Jamroom 5 Core
is now Open Source!
Follow Jamroom on Twitter!

This document applies to Jamroom 3 only!
For current Jamroom 4 Documentation, visit the main Jamroom Documentation section.

{jr_quicktime_player} Index {jr_ranking}


The {jr_random_number} template function is used to create a random number in a template.


Name Type Required Default Description
assign string yes n/a The "assign" parameter is required by the {jr_random_number} function - you should enter the name of the template variable to store the random number in.
min number no 0 The"min" parameter tells Jamroom the minimum number the result can be.
max number no 10 The "max" parameter tells Jamroom the maximum number the result can be.


Example embedding the {jr_random_number} template function into a template:

{jr_random_number min="2" max="5" assign="rand_number"}
{if $rand_number == "2"}
    ... number is 2! ...
{elseif $rand_number == '3'}
    ... number is 3! ...
{elseif $rand_number == '4'}
    ... number is 4! ...
    ... number is 5! ...


{jr_quicktime_player} page 167 of 185 {jr_ranking}
Solutions Products Support Community Company
Social Media Platform
Social Networking Software
Musician Website Manager
Community Builder
Jamroom 5
Jamroom 5 Modules
Jamroom Marketplace
Support Forum
Support Center
Contact Support
Community Forum
Member Sites
About Us
Contact Us
Privacy Policy
©2003 - 2023 The Jamroom Network