Home › Forums › kdb+ › Five easy pieces #2: getting around › Re: Five easy pieces #2: getting around
-
Spoiler rnd:{[x;nd;m] string%[;s]((ceiling;floor;7h$)`up`dn`nr?m)@:x*s:10 xexp nd}?
Stealing your solution here, except
floor 0.5+
can be replaced with7h$
. It is slightly more efficient and will save about 10 characters, if that matters