I'd like to put some example under runnableExamples but this fails since they need random which doesn't work at compile time.
Is there an alternative?
Running nim doc on my draft of median.nim
https://play.nim-lang.org/#ix=2TSC
fails with /usr/lib/nim/pure/random.nim(250, 8) Error: cannot evaluate at compile time: state
Running nim doc on my draft of median.nim
Why is it important that runnable examples are inside of static and block? Are you aware they won't be run at runtime, even without static?