We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7747c98 commit 0ab751eCopy full SHA for 0ab751e
src/extras/random.jl
@@ -85,7 +85,8 @@ function randn(rng::AbstractRNG, ::Type{DoubleFloat{T}}) where {T<:IEEEFloat}
85
urand1, urand2, s = ntuple(i -> zero(DoubleFloat{T}), Val{3}())
86
87
while true
88
- urand1, urand2 = rand(rng, DoubleFloat{T}, 2)
+ urand1 = rand(rng, DoubleFloat{T})
89
+ urand2 = rand(rng, DoubleFloat{T})
90
urand1 = urand1 + urand1 - 1
91
urand2 = urand2 + urand2 - 1
92
s = urand1*urand1 + urand2*urand2
0 commit comments