@Age()

New in 2.0

Generate ages

UserSince 2.0.0

Parameters

NameTypeRequiredDefaultDescription
minInteger1Minimum age, default 0
maxInteger100Maximum age, default 100

Usage

@Age()

Generate random age (0-100)

Example:
@String()
Output:
60
@Age(min,max)

Generate age between min and max

Example:
@String(1,50)
Output:
25
← Back to Function Reference