Skip to content
quotesby

About this quote

What does it mean?
He shows a Perl one‑liner that prints random numbers, noting its odd distribution.
In plain terms
The code prints random numbers with a strange pattern.
What can you take from it?
Simple code can hide unexpected behavior.

Where it applies

  • generating test data
  • experimenting with randomness

Putting it to work

  • run statistical checks
  • use proper RNG functions

Questions to consider

  • Why does this produce an odd distribution?
  • How to verify randomness?

Another view

The comment is vague about why the distribution is interesting.

More from Larry Wall

  1. Y'know, there are other possibilities if we assume that filenames are UTF-8...yikes...wait, put down that meat cleaver! Aieeee!!!

    Permalink to quote #191
  2. : I could understand principles of Perl source in 2-3 days [. . .] Gee, it took me about eleven years. :-)

    Permalink to quote #193
  3. I'm reminded of the day my daughter came in, looked over my shoulder at some Perl 4 code, and said, 'What is that, swearing?

    Permalink to quote #190

Related quotes

  1. Perl has a long tradition of working around compilers.

    Larry WallLarry Wall quote #95
  2. It's certainly easy to calculate the average attendance for Perl conferences.

    Larry WallLarry Wall quote #134
  3. We went through the records and we found over five hundred of his patients who were alive and well five years after their treatment, with no cancer. And Dr. Bu…

    Gary NullGary Null quote #1