Skip to content
This repository was archived by the owner on May 1, 2026. It is now read-only.

Latest commit

 

History

History
20 lines (15 loc) · 656 Bytes

File metadata and controls

20 lines (15 loc) · 656 Bytes

random

glang install random

Generate random numbers in GLang

fetch random

bark(random_number()); # random number
bark(random_range(0, 100)); # random number in the defined range

Supported Generators

Function Output
random_number() Gives a random number with no specified range by using the LCG algorithm.
random_range(a, b) Gives a random number between a and b using the random_number function.