Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
proc R t {time {puts [expr entier(rand()*4**64)]} $t}
Try it online!
proc R t {time {time {append x [expr rand()>.5]} 128 puts [scan $x[expr %llb]0b$x] unset x} $t}
Try it online!Try it online!
proc R t {time {time {append x [expr rand()>.5]} 128 puts [scan $x %llb] unset x} $t}
proc R t {time {time {append x [expr rand()>.5]} 128 puts [expr 0b$x] unset x} $t}
proc R t {time {time {append xputs [expr entier(rand()>.5]} 128 puts [scan $x %llb] unset x*4**64)]} $t}