Oh, apologies, I forgot to convert the `sign` to Int64. Changing the line in question to
return (int(sign(x))*(rand() < abs(x)), int(sign(y))*(rand() < abs(y))) In any case, the original question still stands: could this be improved?
Oh, apologies, I forgot to convert the `sign` to Int64. Changing the line in question to
return (int(sign(x))*(rand() < abs(x)), int(sign(y))*(rand() < abs(y))) In any case, the original question still stands: could this be improved?