in reply to Re^6: Split range 0 to M into N non-overlapping (roughly equal) ranges.
in thread Split range 0 to M into N non-overlapping (roughly equal) ranges.

Ah! Now I see the problem. (Phraseology lacking).

Preliminary response:

my $STEP = ( $M + 1.5 ) / $N;

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re^7: Split range 0 to M into N non-overlapping (roughly equal) ranges.
  • Download Code