Skip to content

Instantly share code, notes, and snippets.

@KCreate
Created June 22, 2016 07:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KCreate/56694b2d9287b4f565cbed288b3bf608 to your computer and use it in GitHub Desktop.
Save KCreate/56694b2d9287b4f565cbed288b3bf608 to your computer and use it in GitHub Desktop.
How the microsoft marketing team generates new names.
const microsoft = function(name) {
const microsoft = (Math.random() < 0.5) ? 'microsoft ' : '';
const smart = (Math.random() < 0.5) ? 'smart ' : '';
const center = (Math.random() < 0.5) ? ' center' : '';
const fullname = microsoft + smart + name + center;
return fullname.trim();
}
module.exports = microsoft;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment