Skip to content

Commit

Permalink
docs: add randomInt documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
bojand committed Feb 18, 2021
1 parent dc5d0ac commit d99d72f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions www/docs/calldata.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**

Expand Down

0 comments on commit d99d72f

Please sign in to comment.