Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #45667 > unrolled thread

Re: How to run a python script twice randomly in a day?

Started byDave Angel <davea@davea.name>
First post2013-05-21 09:54 -0400
Last post2013-05-21 09:54 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: How to run a python script twice randomly in a day? Dave Angel <davea@davea.name> - 2013-05-21 09:54 -0400

#45667 — Re: How to run a python script twice randomly in a day?

FromDave Angel <davea@davea.name>
Date2013-05-21 09:54 -0400
SubjectRe: How to run a python script twice randomly in a day?
Message-ID<mailman.1923.1369144465.3114.python-list@python.org>
On 05/21/2013 06:32 AM, Cameron Simpson wrote:
> On 21May2013 17:56, Chris Angelico <rosuav@gmail.com> wrote:
> | On Tue, May 21, 2013 at 11:12 AM, Cameron Simpson <cs@zip.com.au> wrote:
> | > - randrange() is like other python ranges: it does not include the end value.
> | >   So your call picks a number from 0..58, not 0..59.
> | >   Say randrange(0,60). Think "start, length".
> |
> | Nitpick: It's not start, length; it's start, stop-before. If the start
> | is 10 and the second argument is 20, you'll get numbers from 10 to 19.
> | But your conclusion is still accurate :)
>
> But it's still a useful thing to think when you're trying to reason
> about ranges unless you're doing something unusual.
>


No, it's only happens to look like length when start is zero.  So as a 
mnemonic, it's highly misleading.


-- 
DaveA

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web