Stata programmers: make your users question their sanity by embedding the following in your programs

local f = rbinomial(.2, 1)
if `f' {
local num = round(1000*runiform(),1)
forval i=1/`num' {
window manage minimize
window manage restore
}
}
Why yes, I have just discovered window manage, thanks for asking (ht Ian White).

If you're wondering, 👆 code will, about 1/5 times, make your #Stata window minimise then restore a random number of times (up to 1,000).
Talking of questioning one's sanity, this thread is exactly here to make you question yours. In normal times you would NEVER have read this far. If you are reading this, you've gone nuts.
You can follow @tmorris_mrc.
Tip: mention @twtextapp on a Twitter thread with the keyword “unroll” to get a link to it.

Latest Threads Unrolled: