Luna::IRandom::gen_f32

virtual f32 gen_f32(f32 range_begin, f32 range_end)=0

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].