[#BloombergLP-bslim-FuzzUtil-consumeNumberInRange-0d] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslim.adoc[bslim]::xref:BloombergLP/bslim/FuzzUtil.adoc[FuzzUtil]::consumeNumberInRange :relfileprefix: ../../../ :mrdocs: Return a value of (template parameter) `TYPE` in the specified range [min .. max]based on at most the next `sizeof(TYPE) + 1` bytes from the specified `fuzzDataView`, and update `fuzzDataView` to reflect the bytes consumed. If `0 == fuzzDataView‐>length()`, return the specified `min`. This function does not participate in overload resolution unless either `bsl::is_integral<TYPE>::value` or `bsl::is_floating_point<TYPE>::value` is `true`. The behavior is undefined if `min > max`, `min` or `max` is not finite, or either `bsl::is_same<TYPE, bool>::value` or `bsl::is_same<TYPE, long double>` is `true`. == Synopsis Declared in `<bslim_fuzzutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> static TYPE consumeNumberInRange( xref:BloombergLP/bslim/FuzzDataView.adoc[FuzzDataView]* fuzzDataView, TYPE min, TYPE max) requires bsl::is_integral<TYPE>::value; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#