Random

Returns a random number between 0 and the specified limit.


Usage:


random(limit)


Returns:


Integer:        A number between 0 and limit-1.


Example


echo "Here's a random number between 0 & 50 $(random(51))";

rtrim

rtrim turns the given value into a String and removes any trailing whitespace characters before returning the result.


Usage:


String.rtrim()

Or

rtrim(String)


Returns:


String:        The passed string with any trailing whitespace removed.



Example:


set a = "Hello From    ";

echo "$a DeployHub";

echo "${a.rtrim()} DeployHub";


Result:


Hello From     DeployHub

Hello From DeployHub