random prob
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 50393
interpreted = N
texte = i'm having a bit of trouble with this code -- for the life of me i can't getit to truly give me unique, random numbers, it always duplicates 2 valuesi've been working on it for quite a long time - please help./rc[ListFilespath=/testing/roundtable/swfs/homeImgs/][text]number=[index][/text][/ListFiles][text]unique_numbers=[/text][text]found=0[/text][loop start=1&end=500&advance=1][text]random_number=[math]ceil([random]/7)[/math][/text][hideif [unique_numbers]^[random_number]|][text show=f]unique_numbers=[unique_numbers][random_number]|[/text][text]found=[math][found]+1[/math][/text][/hideif][showif [found]=[number]][break][/showif][/loop][text]numbers=1~2~3~4~5~6~7~8~9~10~11~12~13[/text][listwords words=[numbers]&delimiters=~][showif[unique_numbers]![word]|][text]unique_numbers=[unique_numbers][word]|[/text][/showif][/listwords][text]theVars=[/text][text]theVarsURL=[/text][loop start=1&end=13&advance=1][text]theIndex=[index][/text][ListWords Words=[unique_numbers]&delimiters=|][showif [index]=[theIndex]][text]TheRandomNumber=[word][/text][/showif][/listwords][ListFiles path=/testing/roundtable/swfs/homeImgs/][showif [index]=[TheRandomNumber]][text]thevars=[theVars]&var_[theIndex]=swfs/homeImgs/[filename][/text][search db=mainframe.db&eqcompanynamedatarq=[MiddleStartAfter=&EndBefore=.swf][filename][/middle]&categorysumm=T&max=1][text]theVarsURL=[founditems][theVarsURL]&theVarsURL_[theIndex]=[listwordswords=[category]&delimiters= ][showif[index]=1][word][/showif][/listwords][/founditems][/text][/search][/showif][/ListFiles][/loop]-------------------------------------------------------------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:
i'm having a bit of trouble with this code -- for the life of me i can't getit to truly give me unique, random numbers, it always duplicates 2 valuesi've been working on it for quite a long time - please help./rc[ListFilespath=/testing/roundtable/swfs/homeImgs/][text]number=[index][/text][/ListFiles][text]unique_numbers=[/text][text]found=0[/text][loop start=1&end=500&advance=1][text]random_number=[math]ceil([random]/7)[/math][/text][hideif [unique_numbers]^[random_number]|][text show=f]unique_numbers=[unique_numbers][random_number]|[/text][text]found=[math][found]+1[/math][/text][/hideif][showif [found]=[number]][break][/showif][/loop][text]numbers=1~2~3~4~5~6~7~8~9~10~11~12~13[/text][listwords words=[numbers]&delimiters=~][showif[unique_numbers]![word]|][text]unique_numbers=[unique_numbers][word]|[/text][/showif][/listwords][text]theVars=[/text][text]theVarsURL=[/text][loop start=1&end=13&advance=1][text]theIndex=[index][/text][ListWords Words=[unique_numbers]&delimiters=|][showif [index]=[theIndex]][text]TheRandomNumber=[word][/text][/showif][/listwords][ListFiles path=/testing/roundtable/swfs/homeImgs/][showif [index]=[TheRandomNumber]][text]thevars=[theVars]&var_[theIndex]=swfs/homeImgs/[filename][/text][search db=mainframe.db&eqcompanynamedatarq=[MiddleStartAfter=&EndBefore=.swf][filename][/middle]&categorysumm=T&max=1][text]theVarsURL=[founditems][theVarsURL]&theVarsURL_[theIndex]=[listwordswords=[category]&delimiters= ][showif[index]=1][word][/showif][/listwords][/founditems][/text][/search][/showif][/ListFiles][/loop]-------------------------------------------------------------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:
Sku numbers (1997)
Success Stories (1997)
WebCatalog can't find database (1997)
WebCat2 beta FTP site (1997)
PIXO (1997)
NetSplat and WebCat2 (1997)
international time (1997)
View Source from cache (1997)
Quit revisited (1997)
Bad cookie (1998)
Security Issues and WebCommerce Solution (1997)
Hosting wanted/business for sale (2001)
Smart caching problems with 2.1b3? (1997)
Multi Actions (1999)
Where's Cart Created ? (1997)
Webcatalog quitting (1997)
question: search return in order (1997)
RAM variables (1997)
[OrderFile] being testy (2000)
Interfacing WebMerchant to www.fedex.com (1997)