From d99d72f83768e489773cb03619a1fa57680ec9ca Mon Sep 17 00:00:00 2001 From: Bojan Date: Wed, 17 Feb 2021 22:29:15 -0400 Subject: [PATCH] docs: add randomInt documentation --- www/docs/calldata.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/www/docs/calldata.md b/www/docs/calldata.md index 9c1e324e..351c3d13 100644 --- a/www/docs/calldata.md +++ b/www/docs/calldata.md @@ -55,11 +55,17 @@ type CallData struct { **Template Functions** -There are also two template functions available: +There are also template functions available: -`newUUID` - Generates a new UUID for each invocation. +`func newUUID() string` +Generates a new UUID for each invocation. + +`func randomString(length int) string` +Generates a new random string for each incovation. Accepts a length parameter. If the argument is `<= 0` then a ranom string is generated with a random length between length of `2` and `16`. + +`func randomInt(min, max int) int` +Generates a new non-negative pseudo-random number in range `[min, max)`. -`randomString` - Generates a new random string for each incovation. Accepts a length parameter. If the argument is `<= 0` then a ranom string is generated with a random length between length of `2` and `16`. **Examples**