Documentation · ViewHelper reference

XSD schema file | vhs master

Random / NumberViewHelper

Random: Number Generator

Generates a random number. The default minimum number is set to 100000 in order to generate a longer integer string representation. Decimal values can be generated as well. /

  • Tag usage example

    <v:random.number minimum="123" maximum="123" minimumDecimals="123" maximumDecimals="123">
    	<!-- tag content - may be ignored! -->
    </v:random.number>
  • Inline usage example

    {v:random.number(minimum: 123, maximum: 123, minimumDecimals: 123, maximumDecimals: 123)}

Arguments

Argument Description Type
maximum

Maximum number - defaults to 999999 (default min is 100000 for equal string lengths)

integer
maximumDecimals

Maximum number of also randomized decimal digits to add to number

integer
minimum

Minimum number - defaults to 100000 (default max is 999999 for equal string lengths)

integer
minimumDecimals

Minimum number of also randomized decimal digits to add to number

integer
Required attribute

Revision history

commit a2791a57c182f1ec803668cb28498db856ddf7bd
Author: Claus Due <*****@wildside.dk>
Date:   Sat Dec 1 00:52:05 2012 +0100

    [FEATURE] Random / Number ViewHelper

commit f5beee0e4a982a56a4ad53c83efda0a9ca22d525
Author: Claus Due <*****@wildside.dk>
Date:   Sun Jan 27 21:45:35 2013 +0100

    [DOC] Doc comment for Random / Number ViewHelper

commit 0e51c2029ae593384eac18a8c91d80865fa10f0a
Author: Claus Due <*****@wildside.dk>
Date:   Wed Jan 30 22:09:39 2013 +0100

    [TASK] CGL cleanup, Random / Number ViewHelper

commit da31bad1d9bb058c072ddb5591e8ed907a1ae8e1
Author: Claus Due <*****@namelesscoder.net>
Date:   Tue Dec 31 23:08:37 2013 +0100

    [TASK] Happy new year!

commit d2e531da034976e6db1478eef5a8478595fd16fe
Author: Claus Due <*****@namelesscoder.net>
Date:   Sun Jan 5 00:45:10 2014 +0100

    [TASK] Migrate to using namespace core class names

commit 52bd6e41ccfef3d8193b350153912a9716e6a087
Author: Benjamin Rau <*****@codearts.at>
Date:   Tue Apr 1 21:09:00 2014 +0200

    [TASK] CGL compliance

commit da7677bc74f14e9a9300e4ba4487e52c3cb97642
Author: Claus Due <*****@namelesscoder.net>
Date:   Sun Apr 20 01:13:33 2014 +0200

    [TASK] Switch to namespaces

commit 8bb2fc5ee124ba19b0a0ab8e061c9a153fc4651f
Author: Xaver Maierhofer <*****@xwissen.info>
Date:   Sun Jan 18 17:56:13 2015 +0100

    [TASK] Reference Copyright to license.md file