Popular recipes tagged "randomization"http://code.activestate.com/recipes/tags/randomization/2012-08-07T15:35:23-07:00ActiveState Code RecipesFeatureClassRandomizer (Python) 2012-08-07T15:35:23-07:00Dale Lindemanhttp://code.activestate.com/recipes/users/4183096/http://code.activestate.com/recipes/578237-featureclassrandomizer/ <p style="color: grey"> Python recipe 578237 by <a href="/recipes/users/4183096/">Dale Lindeman</a> (<a href="/recipes/tags/randomization/">randomization</a>, <a href="/recipes/tags/random_number/">random_number</a>). </p> <p>Generates a randomized list of unique IDs and iteratively assigns values to features in a featureclass.</p> Password Generator (Python) 2011-10-14T13:35:21-07:00Alexander Thomas Cruzhttp://code.activestate.com/recipes/users/4179528/http://code.activestate.com/recipes/577905-password-generator/ <p style="color: grey"> Python recipe 577905 by <a href="/recipes/users/4179528/">Alexander Thomas Cruz</a> (<a href="/recipes/tags/generator/">generator</a>, <a href="/recipes/tags/password/">password</a>, <a href="/recipes/tags/randomization/">randomization</a>). Revision 4. </p> <p>Generates a really strong and secure password. It uses multiple characters and symbols. Remember to score please! It really means a lot to me. Revision 4 includes an input so you can choose how many characters you want your password to have. It is also faster due to a suggestion by Garel Alex. Thanks!</p> Convert XML files to structurally equivalent garbage (Python) 2010-12-15T18:57:42-08:00Eric Promislowhttp://code.activestate.com/recipes/users/4166930/http://code.activestate.com/recipes/577501-convert-xml-files-to-structurally-equivalent-garba/ <p style="color: grey"> Python recipe 577501 by <a href="/recipes/users/4166930/">Eric Promislow</a> (<a href="/recipes/tags/randomization/">randomization</a>, <a href="/recipes/tags/shrouding/">shrouding</a>, <a href="/recipes/tags/xml/">xml</a>). </p> <p>You've found a bug in an application that reads XML files. You'd prefer not to share your data, though, but you'd really like to help the vendor fix the bug. This program maintains the document's structure, but it randonly converts each word into random gibberish, replacing vowels with vowels, consonants with consonants, and digits with digits. It also interns each element and attribute name, so all instances of "foo" as an element or attribute name would show up as, say, "xeu", but instances of "foo" in character data would be mapped to a different string each time.</p>