Jump to main content

# 1.2.10.4.3 SRV_RANDOM_Get16bitsInRange Function

## C

    uint16_t SRV_RANDOM_Get16bitsInRange(
        uint16_t min,
        uint16_t max
    );

## Summary

Returns a random value of 16 bits within the given range.

## Description

This function returns a random value of 16 bits within the given range.

## Precondition

None.

## Parameters

Param | Description
--- | ---
min | Minimum value of the range.
max | Maximum value of the range.

## Returns

16-bit random value.

## Example

    uint16_t rndNum = SRV_RANDOM_Get16bits(0, 1500);

## Remarks

None.

Rev: G