So far, I have:

       import Base:ldexp

       @vectorize_2arg Any ldexp

       function 
randfloat{T<:AbstractFloat}(sigRange::FloatRange{T},expRange::UnitRange{Int},n::Int)
          s = rand(sigRange,n)
          e = rand(expRange,n)
          ldexp(s,e) 
       end

On Saturday, March 19, 2016 at 12:06:32 AM UTC-4, Jeffrey Sarnoff wrote:
>
> I am not that familiar with rand stuff, and I'd like to get this right.
>
> The result should play well with other rand functions  and give n 
> ldexp(randSignficand, randExponent) values where the range for the 
> significand and the exponent are specifiable.
>
> Thanks for any guidance.
>

Reply via email to