Jump to main content

# 1.2.10.4.5 SRV_RANDOM_Get32bitsInRange Function

## C

    uint32_t SRV_RANDOM_Get32bitsInRange(
        uint32_t min,
        uint32_t max
    );

## Summary

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

## Description

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

## Precondition

None.

## Parameters

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

## Returns

32-bit random value.

## Example

    uint32_t rndNum = SRV_RANDOM_Get32bits(0, 0xFFFFF);

## Remarks

None.

Rev: G