Luna::random_f32

f32 random_f32(f32 range_begin, f32 range_end)

Generates one random 32-bit floating-point number.

Parameters

  • in range_begin

    The minimum number that will be generated.

  • in range_end

    The maximum number that will be generated.

Return value

Returns the generated number in range [range_begin, range_end].