Rnd() values are changing everytime in ASP.NET
-
Rnd() values are changing everytime in ASP.NET[^] The mind. It boggles.
cheers, Chris Maunder
CodeProject.com : C++ MVP
-
Rnd() values are changing everytime in ASP.NET[^] The mind. It boggles.
cheers, Chris Maunder
CodeProject.com : C++ MVP
-
Rnd() values are changing everytime in ASP.NET[^] The mind. It boggles.
cheers, Chris Maunder
CodeProject.com : C++ MVP
I keep getting an error when dividing my random numbers by zero. I think the random number generator is sending me bad numbers!
-
His code shows that he might know what Rnd() does. I'm guessing he hasn't mastered English and is really looking for a way to seed Rnd() so it repeats the same sequence each time his application runs. Or he has no clue. Either way. Cheers, Drew.
Drew Stainton wrote:
I'm guessing he hasn't mastered English and is really looking for a way to seed Rnd()
Sounds logical. Actually the other option is logical as well. Got to be one or the other. I do admit though, I was very amused by this one until I read your reply. I had him pegged at "no clue"
John
-
His code shows that he might know what Rnd() does. I'm guessing he hasn't mastered English and is really looking for a way to seed Rnd() so it repeats the same sequence each time his application runs. Or he has no clue. Either way. Cheers, Drew.
-
Rnd() values are changing everytime in ASP.NET[^] The mind. It boggles.
cheers, Chris Maunder
CodeProject.com : C++ MVP
As a former programmer of random number generators, I would have to believe that this person has no understanding of one. Yes, he may be wanting to use a seed to generate the same sequence, but since he's not using one means that he doesn't how to use one. This is too funny. It's almost worth the price of admission to Experts Exchange to see the responses.
Christopher Reed "The oxen are slow, but the earth is patient."
-
I keep getting an error when dividing my random numbers by zero. I think the random number generator is sending me bad numbers!
-
As a former programmer of random number generators, I would have to believe that this person has no understanding of one. Yes, he may be wanting to use a seed to generate the same sequence, but since he's not using one means that he doesn't how to use one. This is too funny. It's almost worth the price of admission to Experts Exchange to see the responses.
Christopher Reed "The oxen are slow, but the earth is patient."
Pro tip - you can use the google cache to get the answers. If you hit an experts exchange result in google, click on "cached" to view the cached copy from google, which will include the answers. Lately they added some CSS to the page to hide these, but if you click on the "text only" link then you can find all the answers . Direct link to the answers for that question: http://209.85.173.132/search?q=cache:WxyHTS7gXW4J:www.experts-exchange.com/Web_Development/Miscellaneous/Q_22031739.html+http://www.experts-exchange.com/Web_Development/Miscellaneous/Q_22031739.html&hl=en&client=firefox-a&gl=au&strip=1[^] God I hate experts exchange.
-
Pro tip - you can use the google cache to get the answers. If you hit an experts exchange result in google, click on "cached" to view the cached copy from google, which will include the answers. Lately they added some CSS to the page to hide these, but if you click on the "text only" link then you can find all the answers . Direct link to the answers for that question: http://209.85.173.132/search?q=cache:WxyHTS7gXW4J:www.experts-exchange.com/Web_Development/Miscellaneous/Q_22031739.html+http://www.experts-exchange.com/Web_Development/Miscellaneous/Q_22031739.html&hl=en&client=firefox-a&gl=au&strip=1[^] God I hate experts exchange.
You could just open the page and scroll all the way to the bottom. For some reason the always leave the answers down the bottom so I don't have to pay a cent :laugh: .
-
Pro tip - you can use the google cache to get the answers. If you hit an experts exchange result in google, click on "cached" to view the cached copy from google, which will include the answers. Lately they added some CSS to the page to hide these, but if you click on the "text only" link then you can find all the answers . Direct link to the answers for that question: http://209.85.173.132/search?q=cache:WxyHTS7gXW4J:www.experts-exchange.com/Web_Development/Miscellaneous/Q_22031739.html+http://www.experts-exchange.com/Web_Development/Miscellaneous/Q_22031739.html&hl=en&client=firefox-a&gl=au&strip=1[^] God I hate experts exchange.
-
As a former programmer of random number generators, I would have to believe that this person has no understanding of one. Yes, he may be wanting to use a seed to generate the same sequence, but since he's not using one means that he doesn't how to use one. This is too funny. It's almost worth the price of admission to Experts Exchange to see the responses.
Christopher Reed "The oxen are slow, but the earth is patient."
-
Pro tip - you can use the google cache to get the answers. If you hit an experts exchange result in google, click on "cached" to view the cached copy from google, which will include the answers. Lately they added some CSS to the page to hide these, but if you click on the "text only" link then you can find all the answers . Direct link to the answers for that question: http://209.85.173.132/search?q=cache:WxyHTS7gXW4J:www.experts-exchange.com/Web_Development/Miscellaneous/Q_22031739.html+http://www.experts-exchange.com/Web_Development/Miscellaneous/Q_22031739.html&hl=en&client=firefox-a&gl=au&strip=1[^] God I hate experts exchange.
Doing a google on something I've often ended up at (among others, notable CP :-O ) E-E... and thinking long and hard about joining them. After seeing their answers (and some others) I've decided to stick to CP ;) Thanks for the tip. /Jonas
-
As a former programmer of random number generators, I would have to believe that this person has no understanding of one. Yes, he may be wanting to use a seed to generate the same sequence, but since he's not using one means that he doesn't how to use one. This is too funny. It's almost worth the price of admission to Experts Exchange to see the responses.
Christopher Reed "The oxen are slow, but the earth is patient."
-
Pro tip - you can use the google cache to get the answers. If you hit an experts exchange result in google, click on "cached" to view the cached copy from google, which will include the answers. Lately they added some CSS to the page to hide these, but if you click on the "text only" link then you can find all the answers . Direct link to the answers for that question: http://209.85.173.132/search?q=cache:WxyHTS7gXW4J:www.experts-exchange.com/Web_Development/Miscellaneous/Q_22031739.html+http://www.experts-exchange.com/Web_Development/Miscellaneous/Q_22031739.html&hl=en&client=firefox-a&gl=au&strip=1[^] God I hate experts exchange.
talk about birds of a feather!
No one knows the things of a man except the spirit of that man; likewise no one knows the things of God except the Spirit of God whom we have received. He who is joined to the Lord, is ONE Spirit with him(Jesus) - 1Cor 2:10-16 & 6:17
-
only Chuck Norris can divide by zero
-
Rnd() values are changing everytime in ASP.NET[^] The mind. It boggles.
cheers, Chris Maunder
CodeProject.com : C++ MVP
This answer is very good:
simon_thwaites wrote:
Try this function Function UnRnd() UnRnd = 4 'my favourite number! End Function IntTemp = Int((255 * UnRnd()) + 1)
I'm waiting for Windows Feng Shui, where you have to re-arrange your icons in a manner which best enables your application to run. Richard Jones www.immo-brasseurs.com
-
Awesome tip! Thanks! :D Feel like coding an app where you input the URL, and it loads from cache, and formats properly to look like the real site? :laugh:
-= Reelix =-
There's already a wealth of greasemonkey user scripts to unhide the answers and remove the crap from EE. It's so effective that I removed my EE filter from CustomizeGoogle.
-
As a former programmer of random number generators, I would have to believe that this person has no understanding of one. Yes, he may be wanting to use a seed to generate the same sequence, but since he's not using one means that he doesn't how to use one. This is too funny. It's almost worth the price of admission to Experts Exchange to see the responses.
Christopher Reed "The oxen are slow, but the earth is patient."
CAReed wrote:
This is too funny. It's almost worth the price of admission to Experts Exchange to see the responses.
if someone has a membership please tell us what is the response !
-
Rnd() values are changing everytime in ASP.NET[^] The mind. It boggles.
cheers, Chris Maunder
CodeProject.com : C++ MVP
Chris, I think the guy wants to return the same value each time Rnd() is called based on a constant seed. The answer to his question is inside the Microsoft documentation[^]. Rnd[(number)] [If number is] Less than zero: The same number every time, using number as the seed. Best Wishes, -David Delaune