Skip to main content

random_decimal

Function random_decimal 

Source
pub fn random_decimal(
    u: &mut Unstructured<'_>,
    decimal_type: &DecimalDType,
) -> Result<ScalarValue>
Expand description

Generates an arbitrary decimal scalar confined to the given bounds of precision and scale.

ยงErrors

Returns an error if the underlying arbitrary generation fails.