# rand ## Function Generate pseudo-random numbers. ## Syntax ```bt rand(min, max) ``` ## Parameters | Parameters | Type | Required | Default value | Description | | ------ | ------ | ------ | ------ | ------ | | min | Number | No | None | Minimum value; used as the end value when only one parameter is passed. | | max | Number | No | None | Maximum value. | ## Return value | Type | Description | | ------ | ------ | | Float/Int | Returns a Float from 0 to 1 without parameters; returns Int for integer range parameters; returns Float when any parameter is a Float. | ## Example ```bt result = rand(1, 10) // Output: Int echo(type(result)) ``` ## Notes - The random source is based on the current high-precision time mix, not cryptographic random numbers.