Under what circumstances is it desirable not to randomize?
Randomize..
Collapse
X
-
Randomization can be useful in a lot of situations, however, there are times when pseudo-randomness is better.
Consider the following situation: you are writing a program which uses a random number generator to determine the actions which the program follows. Durring the testing phase of this application, you hit a circumstance where the code goes horribly wrong. It would be nice if you could control and repeat the random number sequence that gave you the erroneous results.
Another situation to consider is in benchmarking a piece of software which uses random numbers. If the length of time a function runs is based on a set of random numbers, controlling those numbers will allow you to give a best and worst case scenario.
Hope this helps,
MotomaComment
-
You two must have the same text book.Originally posted by MotomaRandomization can be useful in a lot of situations, however, there are times when pseudo-randomness is better.
Consider the following situation: you are writing a program which uses a random number generator to determine the actions which the program follows. Durring the testing phase of this application, you hit a circumstance where the code goes horribly wrong. It would be nice if you could control and repeat the random number sequence that gave you the erroneous results.
Another situation to consider is in benchmarking a piece of software which uses random numbers. If the length of time a function runs is based on a set of random numbers, controlling those numbers will allow you to give a best and worst case scenario.
Hope this helps,
MotomaComment
-
I still think you have the same book too because even though I knew all the hints you gave, I did not see how they applied directly to the question that was asked because no context was given for the question.Originally posted by MotomaHah, no.
Just happened to do some work with randomization for my Capstone.
One thing that is often looked for in a random function is repeatability.
Q:Under what circumstances is it desirable not to randomize?
A:When playing my songs from an mp3 that has songs grouped by albums.Comment
-
Indeed if the book gives no context in the question you could have a laugh writing all sorts of arguably "correct" answers, for example:Originally posted by r035198xQ:Under what circumstances is it desirable not to randomize?
A:When playing my songs from an mp3 that has songs grouped by albums.
When choosing a country's leader from the population
When deciding who plays in which position in a professional football team!
RaddersComment
-
Yes, pseudo-randomness is the best choice in these situations for sure!Originally posted by raddersIndeed if the book gives no context in the question you could have a laugh writing all sorts of arguably "correct" answers, for example:
When choosing a country's leader from the population
When deciding who plays in which position in a professional football team!
RaddersComment
-
Honestly guys..This was posted in a C/C++ forum. One should assume, as such, the question was related to the language or the act of programming.Originally posted by RedSonYea thanks for backing me up guys. This question was entirely too broad. It would be akin to asking "Which is a better screwdriver, phillips or flat head?"Comment
-
I still maintain that even given the entire domain of the C/C++ language or the act of programming it is still too general of a question. Just my opinion, agree if you want to.Originally posted by MotomaHonestly guys..This was posted in a C/C++ forum. One should assume, as such, the question was related to the language or the act of programming.Comment
Comment