Editing 1277: Ayn Random
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 14: | Line 14: | ||
As an aside, "biased" random number generators exist. They're called weighted random number generators, and they have many practical applications when the programmer isn't lying about the number generator's function and output. | As an aside, "biased" random number generators exist. They're called weighted random number generators, and they have many practical applications when the programmer isn't lying about the number generator's function and output. | ||
− | The title text identifies a group of people whose names match the {{w|regular expression}} <code | + | The title text identifies a group of people whose names match the {{w|regular expression}} <code>/(\b[plurandy]+\b ?){2}/i</code>. A step-by-step explanation of the expression: |
*\b is a word boundary, matching anywhere there is a 'word character' next to a non-word character—punctuation, digit, spacing, etc. | *\b is a word boundary, matching anywhere there is a 'word character' next to a non-word character—punctuation, digit, spacing, etc. | ||
*[plurandy] is a character class, and will match any single character from the set inside the square brackets; [adlnpruy] means exactly the same | *[plurandy] is a character class, and will match any single character from the set inside the square brackets; [adlnpruy] means exactly the same |