Skip to main content

system.kanoa.utilities.getRandomNumber

This function requires KanoaCore module

Description

Returns a random number between the start and end values (kanoaCore).

Syntax

getRandomNumber(start, end)
  • Parameters
      start (Integer) - The start value of the random range.
      end (Integer) - The end value of the random range.
  • Returns
      random number (Integer) - A random integer within the specified range.
  • Code Example

    # Example Usage:
    random_value = system.kanoa.utilities.getRandomNumber(start, end)