Advertisement
Guest User

Untitled

a guest
Jul 27th, 2015
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. #!/usr/bin/php
  2. <?php
  3.  
  4. $verbs = [
  5. 'Get',
  6. 'Apply for',
  7. 'Request',
  8. 'Verify',
  9. 'Read',
  10. 'Use',
  11. NULL,
  12. ];
  13.  
  14. $articles = [
  15. 'A',
  16. 'The',
  17. 'Your',
  18. 'CARD.com`s',
  19. 'No',
  20. ];
  21.  
  22. $adjectives = [
  23. 'Fully-Approved',
  24. 'Prepaid',
  25. 'Debit',
  26. 'Credit',
  27. 'Fun',
  28. 'Online',
  29. 'Peer-to-Peer',
  30. 'Transferable',
  31. 'Worldwide',
  32. 'Bank Issued',
  33. 'Cryptographic',
  34. 'Universally Accepted',
  35. 'Reloadable',
  36. 'Check-cashing',
  37. 'Digital',
  38. 'Easy',
  39. 'Overdraft',
  40. 'Waived',
  41. 'Surcharge-free',
  42. NULL,
  43. ];
  44.  
  45. $nouns = [
  46. 'Card',
  47. 'Card',
  48. 'Card',
  49. 'Bank',
  50. 'Visa',
  51. 'MasterCard',
  52. 'Bitcoin Wallet',
  53. 'ATM',
  54. 'Credit Check',
  55. 'Overdraft',
  56. 'Fees',
  57. 'Card.com',
  58. 'Debit',
  59. 'Credit Cards',
  60. 'Money Transfer',
  61. 'Western Union',
  62. 'Merchant',
  63. 'Affinity',
  64. 'Program',
  65. 'Membership',
  66. 'Account',
  67. 'Application',
  68. 'Mobile App',
  69. 'Interactivity',
  70. 'Innovation',
  71. 'Expiration Date',
  72. 'Minimum Balance',
  73. 'Direct Deposit',
  74. ];
  75.  
  76. function random($array) {
  77. $i = rand(0, count($array) - 1);
  78. return $array[$i];
  79. }
  80.  
  81. $output = '';
  82. while (strlen($output) < $argv[1]) {
  83. $output .= implode(' ', [random($verbs), random($articles), random($adjectives), random($nouns)]) . '. ';
  84. }
  85.  
  86. echo $output . "\n";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement