Reply to post: The Inscrutable Munge

You've seen things people wouldn't believe – so tell us your programming horrors

LionelB Silver badge

The Inscrutable Munge

My favourite comment on a 2-liner in Matlab to seed a rng based on current time:

t = clock;

rseed = mod(round(cumprod([10000,60,60,24,31,12])*t(6:-1:1)'),2^32); % inscrutable munge

(I did once actually figure out what it was supposed to be doing, so not that inscrutable, I guess.)

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon