Namespace org.wasmcloud.interface.numbergen

Services
Structures

GenerateGuid(operation)

GenerateGuid - return a 128-bit guid in the form 123e4567-e89b-12d3-a456-426655440000 These guids are known as "version 4", meaning all bits are random or pseudo-random.

output: String

NumberGen(service)

Traits

org.wasmcloud.model#wasmbus [object]

Random32(operation)

Request a 32-bit random number

RandomInRange(operation)

Request a random integer within a range The result will will be in the range [min,max), i.e., >= min and < max.

RangeLimit(structure)

Input range for RandomInRange, inclusive. Result will be >= min and <= max Example: random_in_range(RangeLimit{0,4}) returns one the values, 0, 1, 2, 3, or 4.