Re: [Python-ideas] New function to add into the "random" module

2017-02-02 Thread Paul Moore
On 2 February 2017 at 12:01, wrote: > P.P.S.: The function is tested, it’s working 😊 > First of all, thanks for your suggestion, and for taking the time to help improve Python. As noted, random.uniform probably does what you want, so we don't really need this function. But in case it's of inter

Re: [Python-ideas] New function to add into the "random" module

2017-02-02 Thread Franklin? Lee
On Thu, Feb 2, 2017 at 7:01 AM, wrote: > from random import * > > > > def randfloat(x , y , maxfloatpt=None): > > if x > y: > > x , y = y , x > > lenx = len(str(x)) > > leny = len(str(y)) > > intx = int(x) > > inty = int(y) > > bigger = max(lenx,leny) > > if ma

Re: [Python-ideas] New function to add into the "random" module

2017-02-02 Thread Daniel Moisset
Hi Terry, the functionality you have provided is already covered by the random.uniform function On 2 February 2017 at 12:01, wrote: > Hi, my name is Terry, and I’d like to propose a small function that could > be added into the Python’s “random” module. > > > > This function is for generating a

[Python-ideas] New function to add into the "random" module

2017-02-02 Thread himchanterry
Hi, my name is Terry, and I’d like to propose a small function that could be added into the Python’s “random” module. This function is for generating a random float/decimal number. I would like to know if there’s such function that does the same thing, if there is, please point out to me. If no