digitalmars.D.learn - Random.next is deprecated
- Sam Hu (4/4) Sep 11 2008 Hi,
- Jarrett Billingsley (4/8) Sep 11 2008 import tango.math.random.Kiss;
- Sam Hu (3/3) Sep 11 2008 Thanks Jarrett.
- Jarrett Billingsley (3/6) Sep 11 2008 Dunno. Maybe they're planning on having other kinds of RNGs in
- Bill Baxter (7/17) Sep 11 2008 I was wondering about that Kiss module too. I really hope it's not
- Moritz Warning (3/25) Sep 11 2008 It's the name of a RNG by Marsaglia.
- Bill Baxter (6/31) Sep 11 2008 Whew! I was afraid Tango had gone all cutesy on us for a while there.
- Jarrett Billingsley (3/22) Sep 11 2008 Get your vomit bag ready. Yes, Marsaglia came up with it and named
- Bill Baxter (8/18) Sep 11 2008 I figured that was probably the case. But for some reason that
Hi, In Tango I want to use Random.next(uint i) to generate a random number between(0,i) but the compiler told me the next(...) function is deprecated.So what is the equivalent function? Thanks, Sam
Sep 11 2008
On Thu, Sep 11, 2008 at 9:53 PM, Sam Hu <samhu.samhu gmail.com> wrote:Hi, In Tango I want to use Random.next(uint i) to generate a random number between(0,i) but the compiler told me the next(...) function is deprecated.So what is the equivalent function? Thanks, Samimport tango.math.random.Kiss; Kiss.shared.toInt(i) Dumb name, but it's pretty much the same thing :)
Sep 11 2008
Thanks Jarrett. It works now.But I am wondering why does such changes,any special reason? Thanks again.
Sep 11 2008
On Thu, Sep 11, 2008 at 10:35 PM, Sam Hu <samhu.samhu gmail.com> wrote:Thanks Jarrett. It works now.But I am wondering why does such changes,any special reason? Thanks again.Dunno. Maybe they're planning on having other kinds of RNGs in tango.math.random.
Sep 11 2008
On Fri, Sep 12, 2008 at 11:45 AM, Jarrett Billingsley <jarrett.billingsley gmail.com> wrote:On Thu, Sep 11, 2008 at 10:35 PM, Sam Hu <samhu.samhu gmail.com> wrote:I was wondering about that Kiss module too. I really hope it's not Kiss as in "keep it simple stupid". If so I think I'm going to barf. Please tell me there's some RNG algorithm known as Kiss. Googling didn't turn it up, but maybe my google-fu is just weak. --bbThanks Jarrett. It works now.But I am wondering why does such changes,any special reason? Thanks again.Dunno. Maybe they're planning on having other kinds of RNGs in tango.math.random.
Sep 11 2008
On Fri, 12 Sep 2008 11:50:00 +0900, Bill Baxter wrote:On Fri, Sep 12, 2008 at 11:45 AM, Jarrett Billingsley <jarrett.billingsley gmail.com> wrote:It's the name of a RNG by Marsaglia. 287 + a simple RNGOn Thu, Sep 11, 2008 at 10:35 PM, Sam Hu <samhu.samhu gmail.com> wrote:I was wondering about that Kiss module too. I really hope it's not Kiss as in "keep it simple stupid". If so I think I'm going to barf. Please tell me there's some RNG algorithm known as Kiss. Googling didn't turn it up, but maybe my google-fu is just weak. --bbThanks Jarrett. It works now.But I am wondering why does such changes,any special reason? Thanks again.Dunno. Maybe they're planning on having other kinds of RNGs in tango.math.random.
Sep 11 2008
On Fri, Sep 12, 2008 at 12:40 PM, Moritz Warning <moritzwarning web.de> wrote:On Fri, 12 Sep 2008 11:50:00 +0900, Bill Baxter wrote:Whew! I was afraid Tango had gone all cutesy on us for a while there. Like out with tango.group, in with Tango "Kiss" modules. Seriously. So glad to hear it's just the name of a RNG. Sorry to find out my Google-fu is so weak, though. :-( --bbOn Fri, Sep 12, 2008 at 11:45 AM, Jarrett Billingsley <jarrett.billingsley gmail.com> wrote:It's the name of a RNG by Marsaglia. 287 + a simple RNGOn Thu, Sep 11, 2008 at 10:35 PM, Sam Hu <samhu.samhu gmail.com> wrote:I was wondering about that Kiss module too. I really hope it's not Kiss as in "keep it simple stupid". If so I think I'm going to barf. Please tell me there's some RNG algorithm known as Kiss. Googling didn't turn it up, but maybe my google-fu is just weak. --bbThanks Jarrett. It works now.But I am wondering why does such changes,any special reason? Thanks again.Dunno. Maybe they're planning on having other kinds of RNGs in tango.math.random.
Sep 11 2008
On Thu, Sep 11, 2008 at 10:50 PM, Bill Baxter <wbaxter gmail.com> wrote:On Fri, Sep 12, 2008 at 11:45 AM, Jarrett Billingsley <jarrett.billingsley gmail.com> wrote:Get your vomit bag ready. Yes, Marsaglia came up with it and named it, and yes, he named it after "Keep it simple stupid". :POn Thu, Sep 11, 2008 at 10:35 PM, Sam Hu <samhu.samhu gmail.com> wrote:I was wondering about that Kiss module too. I really hope it's not Kiss as in "keep it simple stupid". If so I think I'm going to barf. Please tell me there's some RNG algorithm known as Kiss. Googling didn't turn it up, but maybe my google-fu is just weak. --bbThanks Jarrett. It works now.But I am wondering why does such changes,any special reason? Thanks again.Dunno. Maybe they're planning on having other kinds of RNGs in tango.math.random.
Sep 11 2008
On Fri, Sep 12, 2008 at 1:06 PM, Jarrett Billingsley <jarrett.billingsley gmail.com> wrote:I figured that was probably the case. But for some reason that doesn't bother me. I guess I don't really expect mathematicians to have any aesthetic sense. :-) I was just afraid Tango was going to start having "Kiss" modules pop up in every package. --bbI was wondering about that Kiss module too. I really hope it's not Kiss as in "keep it simple stupid". If so I think I'm going to barf. Please tell me there's some RNG algorithm known as Kiss. Googling didn't turn it up, but maybe my google-fu is just weak. --bbGet your vomit bag ready. Yes, Marsaglia came up with it and named it, and yes, he named it after "Keep it simple stupid". :P
Sep 11 2008