Re: random prob

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 50409
interpreted = N
texte = as it stands right now it works without this little fix, but i'll implement it. and thank you rob. and thanks to all who responded. this little prob was starting to get to me after two days.----- Original Message ----- From: Rob Marquardt To: WebDNA Talk Sent: Thursday, May 15, 2003 2:51 PM Subject: Re: random prob > on 5/15/2003 1:35 pm, Ron Ceballos at ron@specsimple.com so noted... > > > and since the random float thing doesn't work i went back to old [math > > show=F]floor([random]/13)+1[/math] > > and seemingly that works. should i shout yay? :) > > ... Not if you're expecting it to generate numbers from 1-13. : ) > > [random] is a number from 0-99, so this method would give you random numbers > from 1-8. > > If 3.0.7 doesn't support the float parameter, divide [random] by 100 and > multiply by the max number in your range. > > [math]floor([random]/100*13)+1[/math] > > > Rob Marquardt > Designer/Resident Wirehead > Toast Design > > 800 Washington Avenue North > Minneapolis MN 55401 > 612.330.9863 v > 612.321.9424 f > www.toastdesign.com > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: random prob (Ron Ceballos 2003)
  2. Re: random prob (Glenn Busbin 2003)
  3. Re: random prob (Rob Marquardt 2003)
  4. Re: random prob (Ron Ceballos 2003)
  5. Re: random prob (Glenn Busbin 2003)
  6. Re: random prob (Beljaeff, Gene 2003)
  7. Re: random prob (Rob Marquardt 2003)
  8. Re: random prob (Ron Ceballos 2003)
  9. Re: random prob (Rob Marquardt 2003)
  10. Re: random prob (Ron Ceballos 2003)
  11. Re: random prob (Rob Marquardt 2003)
  12. Re: random prob (John Peacock 2003)
  13. Re: random prob (Glenn Busbin 2003)
  14. Re: random prob (Ron Ceballos 2003)
  15. Re: random prob (Rob Marquardt 2003)
  16. random prob (Ron Ceballos 2003)
as it stands right now it works without this little fix, but i'll implement it. and thank you rob. and thanks to all who responded. this little prob was starting to get to me after two days.----- Original Message ----- From: Rob Marquardt To: WebDNA Talk Sent: Thursday, May 15, 2003 2:51 PM Subject: Re: random prob > on 5/15/2003 1:35 pm, Ron Ceballos at ron@specsimple.com so noted... > > > and since the random float thing doesn't work i went back to old [math > > show=F]floor([random]/13)+1[/math] > > and seemingly that works. should i shout yay? :) > > ... Not if you're expecting it to generate numbers from 1-13. : ) > > [random] is a number from 0-99, so this method would give you random numbers > from 1-8. > > If 3.0.7 doesn't support the float parameter, divide [random] by 100 and > multiply by the max number in your range. > > [math]floor([random]/100*13)+1[/math] > > > Rob Marquardt > Designer/Resident Wirehead > Toast Design > > 800 Washington Avenue North > Minneapolis MN 55401 > 612.330.9863 v > 612.321.9424 f > www.toastdesign.com > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Ron Ceballos

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

[SEARCH] Context for SKU prices not working... (1998) Date stamp and purging (1998) [SearchString] usage (1997) Append - form based command (1999) What am I missing (1997) Help name our technology! (1997) Was 5.0 Pricing, now Sandbox versus Website and ruminating (2003) Emailer setup (1997) shipcost (1997) Error:Too many nested [xxx] contexts (1997) How is it done? (1998) [WebDNA] Successful, working WebDNA7/CentOS install? (2013) Help! Missing [showif] or [hideif] (2000) Greeting Card System (2000) Online reference (1997) CloseDatabase (1997) URGENT! Locked DB's (2001) Thanks SMSI (2003) minimalist shopping cart. (1997) Hiding URL ? (1998)