Re: random prob

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 50402
interpreted = N
texte = 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? :) ----- Original Message ----- From: Rob Marquardt To: WebDNA Talk Sent: Thursday, May 15, 2003 2:27 PM Subject: Re: random prob > on 5/15/2003 1:07 pm, John Peacock at jpeacock@rowman.com so noted... > > > Lastly, I really question the programming technique of storing numerical > > values in text variables. Show of hands, how many people have actually > > written templates where you ran out of math variables (that's 150 individually > > named variables)? > > I'll assign numeric values to text variables because text variable > definitions are hidden by default and there's fewer restrictions as to > variable name length and the characters that can be used in the variable > name than for [math]. > > Most of the time I'm dealing with them as strings anyway. The fact that the > string is composed of numbers is incidental. If I'm using them for > calculations, then [math] generally gets pulled out. > > > 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)
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? :) ----- Original Message ----- From: Rob Marquardt To: WebDNA Talk Sent: Thursday, May 15, 2003 2:27 PM Subject: Re: random prob > on 5/15/2003 1:07 pm, John Peacock at jpeacock@rowman.com so noted... > > > Lastly, I really question the programming technique of storing numerical > > values in text variables. Show of hands, how many people have actually > > written templates where you ran out of math variables (that's 150 individually > > named variables)? > > I'll assign numeric values to text variables because text variable > definitions are hidden by default and there's fewer restrictions as to > variable name length and the characters that can be used in the variable > name than for [math]. > > Most of the time I'm dealing with them as strings anyway. The fact that the > string is composed of numbers is incidental. If I'm using them for > calculations, then [math] generally gets pulled out. > > > 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:

Share cost of training videos! (1998) sort problems....bug or brain fart? (1997) More on the email templates (1997) Problem (1997) Upgrading old WebCat Database Files (1997) gateway application timeouts (1998) BBEdit WedDNA Codeless Language Module (2007) Friendly , quick 'security' check, please (2003) Signal Raised (1997) [countChars] from