Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Split range 0 to M into N non-overlapping (roughly equal) ranges.

by salva (Canon)
on Mar 12, 2011 at 18:17 UTC ( [id://892849]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    [15:43:29.03] C:\test>ranges -N=2 -M=9999997
     0 : from       0 to 4999997 (4999998)
     1 : from 4999998 to 9999997 (5000000)
    
  2. or download this
     0 : from       0 to 4999998 (4999999)
     1 : from 4999999 to 9999997 (4999999)
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://892849]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-04-23 11:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found