Skip to main content
added 71 characters in body
Source Link
jdt
  • 4.5k
  • 1
  • 14
  • 18

C (gcc), 4443 bytes

f(n){n=sqrt(2*(rand()/215e7*n*++n21e8*n*++n/2)+1)-.5;}

Try it online!Try it online!

C (gcc), 44 bytes

f(n){n=sqrt(2*(rand()/215e7*n*++n/2)+1)-.5;}

Try it online!

C (gcc), 43 bytes

f(n){n=sqrt(2*(rand()/21e8*n*++n/2)+1)-.5;}

Try it online!

deleted 1 character in body
Source Link
jdt
  • 4.5k
  • 1
  • 14
  • 18

C (gcc), 44 bytes

f(n){n=randn=sqrt(2*(rand()/22e8*n*-~n+2;n=sqrt(n&~1215e7*n*++n/2)+1)-.5;}

Try it online!Try it online!

C (gcc), 44 bytes

f(n){n=rand()/22e8*n*-~n+2;n=sqrt(n&~1)-.5;}

Try it online!

C (gcc), 44 bytes

f(n){n=sqrt(2*(rand()/215e7*n*++n/2)+1)-.5;}

Try it online!

Post Undeleted by jdt
Post Deleted by jdt
Post Undeleted by jdt
Post Deleted by jdt
Source Link
jdt
  • 4.5k
  • 1
  • 14
  • 18

C (gcc), 44 bytes

f(n){n=rand()/22e8*n*-~n+2;n=sqrt(n&~1)-.5;}

Try it online!