Editing 1277: Ayn Random

Jump to: navigation, search

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>[https://www.debuggex.com/r/WsWV5ZSh8NTQL_JZ <nowiki>/(\b[plurandy]+\b ?){2}/i</nowiki>]</code>. A step-by-step explanation of the expression:
+
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

Please note that all contributions to explain xkcd may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see explain xkcd:Copyrights for details). Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel | Editing help (opens in new window)