Skip to content

Instantly share code, notes, and snippets.

@elico
Created December 30, 2025 18:23
Show Gist options
  • Select an option

  • Save elico/ed5ecdb9e29a2ed0398ca1fff736c85e to your computer and use it in GitHub Desktop.

Select an option

Save elico/ed5ecdb9e29a2ed0398ca1fff736c85e to your computer and use it in GitHub Desktop.
:do {
# Define the range
:local minVal 45000
:local maxVal 47000
# Generate a random integer within the specified range (inclusive)
:local randomNumber [:rndnum from=$minVal to=$maxVal]
# Output the result to the console
:put ("Generated random port number: " . $randomNumber)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment