Random name generation

I need to generate a large number of demonstration records for a users database. I'd like to have vaguely credible looking names and e-mails but not based on any real data for reasons of data protection.
Anyone got a good random name and/or address generator to hand? I was thinking of constructing a Markov chain of letter sequences from some English text, though I'm told this doesn't look that good.

As stated, this has nothing to do with java.
But actually I've done the same thing once (in Perl actually), and so have a useful tip: The U.S. Census office has (or had a couple years ago) some data about the most common names in the U.S. at the time of the previous census. It listed the most common family names, and male and female given names, from most to least common, along with a percentage. This information was freely given out on their web site.
With these files, it was pretty easy to write a 20-line (or so) brute-force perl script that would read in the files, then generate a series of statistically likely names. I faked emails too, by just grabbing the first 6 or 7 chars from the last name and one or two from the first, tweaked as necessary to make them unique.
(BTW, this was necessary, because a purely randomly generated list of names is obviously wrong from a quick (human) inspection. Without balancing the names by likelihood, you get as many Hubert Bigglesworths as you do John Smiths.)
So my advice is, check the census office of the government of the country whose names you're trying to fake out.
Also, I think Perl is more appropriate for this task than Java, by the way. It's great for quick-and-dirty text processing like this.

Similar Messages

  • What algorithm does Excel 2010 use for Pseudo Random Number Generation (MT19937?)

    Does Excel 2010+ use the Mersenne Twister (MT19937) algorithm for Pseudo Random Number Generation (PRNG), implemented by the RAND() function?
    This has been a nagging question for some time now, with "hints" that it indeed does.  However, a relatively thorough search turns up no definitive documentation.  The most direct indication is perhaps given by Guy Melard [Ref 9] where
    he tests Excel 2010's RAND() function using the Crush battery of tests in TestU01 by L'Ecuyer & Simard.  Melard references a "semi-official" indication that Microsoft did indeed implement MT19937 for the RAND() function in
    Excel 2010, but this reference no longer seems to be available. http://office.microsoft.com/enus/excel-help/about-solver-HP005198368.aspx?pid=CH010004571033.
    The other references below [Ref 1-10] document the history of the statistical suitability of the PRNG and probability distributions in various versions of Excel.  This includes the Wichmann-Hill PRNG implementations supposedly (arguably) used in
    Excel 2003 & 2007 for random number generation.  But still, we have no answer as to which PRNG algorithm is used in
    Excel 2010 (and 2013 for that matter).
    Microsoft indicates that RAND() has been improved in Excel 2010; Microsoft states, "...and the RAND function now uses a new random number algorithm." (see https://support.office.com/en-ca/article/Whats-New-Changes-made-to-Excel-functions-355d08c8-8358-4ecb-b6eb-e2e443e98aac). 
    But no details are given on the actual algorithm.  This is critical for Monte Carlo methods and many other applications.
    Any help would be much appreciated. Thanks.
    [Ref 1] B. McCullough, B. Wilson.  On the Accuracy of Statistical Procedures in Microsoft Excel 97. 
    Computational Statistics & Data Analysis. Vol. 31 No. 1, pp 27-37. July 1999.
    http://users.df.uba.ar/cobelli/LaboratoriosBasicos/excel97.pdf
    [Ref 2]L. Knüsel.  On the accuracy of the statistical distributions in Microsoft Excel 97. Computational Statistics & Data Analysis. Vol. 26 No. 3, pp 375-377. January 1998.
    http://www.sciencedirect.com/science/article/pii/S0167947397817562
    [Ref 3]B. McCullough, B. Wilson.  On the Accuracy of Statistical Procedures in Microsoft Excel 2000 and Excel XP. 
    Computational Statistics & Data Analysis. Vol.40 No. 4, pp 713-721. October 2002.
    https://www.researchgate.net/publication/222672996_On_the_accuracy_of_statistical_procedures_in_Microsoft_Excel_2000_and_Excel_XP/links/00b4951c314aac4702000000.pdf
    [Ref 4] B. McCullough, B. Wilson.  On the Accuracy of Statistical Procedures in Microsoft Excel 2003. 
    Computational Statistics & Data Analysis. Vol.49. No. 4, pp 1244-1252. June 2005.
    http://www.pucrs.br/famat/viali/tic_literatura/artigos/planilhas/msexcel.pdf
    [Ref 5] L. Knüsel. On the accuracy of statistical distributions in Microsoft Excel 2003. Computational Statistics & Data Analysis, Vol. 48, No. 3, pp 445-449. March 2005.
    http://www.sciencedirect.com/science/article/pii/S0167947304000337
    [Ref 6]B. McCullough, D.Heiser.  On the Accuracy of Statistical Procedures in Microsoft Excel 2007. 
    Computational Statistics & Data Analysis. Vol.52. No. 10, pp 4570-4578. June 2008.
    http://users.df.uba.ar/mricci/F1ByG2013/excel2007.pdf
    [Ref 7] A. Yalta. The Accuracy of Statistical Distributions in Microsoft<sup>®</sup> Excel 2007. Computational Statistics & Data Anlaysis. Vol. 52 No. 10, pp 4579 – 4586. June 2008.
    http://www.sciencedirect.com/science/article/pii/S0167947308001618
    [Ref 8] B. McCullough.  Microsoft Excel’s ‘Not The Wichmann-Hill’ Random Number Generators. Computational Statistics and Data Analysis. Vol.52. No. 10, pp 4587-4593. June 2008.
    http://www.sciencedirect.com/science/article/pii/S016794730800162X
    [Ref 9] G. Melard.  On the Accuracy of Statistical Procedures in Microsoft Excel 2010. Computational Statistics. Vol.29 No. 5, pp 1095-1128. October 2014.
    http://homepages.ulb.ac.be/~gmelard/rech/gmelard_csda23.pdf
    [Ref 10] L. Knüsel.  On the Accuracy of Statistical Distributions in Microsoft Excel 2010. Department of Statistics - University of Munich, Germany.
    http://www.csdassn.org/software_reports/excel2011.pdf

    I found the same KB article:
    https://support.microsoft.com/en-us/kb/828795
    This was introduced (according to the article) in Excel 2003. Perhaps the references in notes 2 and 3 might help.
    The article describes combining the results of 3 generators, each similar to a Multiply With Carry (MWC) generator, but with zero carry. MWC generators do very well on the Diehard battery of randomness tests (mentioned in your references), and have
    very long periods. But using zero carry makes no sense to me.
    Combining the three generators only helps if the periods of the 3 are relatively prime (despite what the article implies). Then the period of the result will be the product of the 3 periods. But without knowing the theory behind these generators, I have
    no idea what the periods would be. The formulas for MWC generators fail here.
    Richard Mueller - MVP Directory Services

  • Hi - When I go into Contacts and type a letter in the search bar to get to last names that begin with that letter I get a list of random names that don't correlate to the letter. My settings are fine.  Help ?

    Hi. When I go into my contacts and type a letter in the saerch bar to get to a list of last names that begin with that letter I get a list of random names that don't begin or end with the letter.  My Settings appear fine.  Any insights would be greatly appreciated.  Cheers Bill

    The search bar is not designed to take you to names beginning with the letter you put in. If you want to do that, use the letters down the side. In the search bar, the device will return results for all contacts that have that have that letter in them. If you type a couple of letters of the name, you'll find what you want faster. Once you get used to how it works, it's quite efficient.
    Best of luck.

  • My new iphone says some random name in itunes and not mine. Why?

    Why does my iphone have a random name and not mine? When connected to itunes it says my devices name is some girls name.

    I am also having the same issue. Please help!

  • Steps to develope user name generation event handler in OIM 11gR2

    Friends,
    Can you please provide me steps to develop user name generation event handler in oim 11gR2?
    Thanks,
    Chakri

    Thanks for providing the detailed steps. This is waht i was looking for.
    I will follow these steps and let you know the results.
    Thanks for your support.

  • When i have my bluetooth connected in my car my iphone is listed as a random name. How do I change it

    When my phone is connected to Bluetooth in my car it is listed as a completely random name. How do I change the name of my phone?

    Make sure you setup iCloud correctly >  Apple - iCloud - Learn how to set up iCloud on all your devices

  • When I type my email address in the "To:" field, a random name comes up next to it as "Holidays in United States". This just started happening out of the blue and I have no idea why. Does anyone else have any idea?

    When I type my email address in the "To:" field, a random name comes up next to it as "Holidays in United States". This just started happening out of the blue and I have no idea why. Does anyone else have any idea?

    Just to recap, this is a collection of ports I have collected over time for people who needed this information when setting up the HP ePrint app so that they could view their email from within the app.  I am certain other applications also need this information.  Although lengthy, I could not find a more comprehensive place to retrieve this information.  Feel free to post additional information, faulty information, or other related topics below as this is simply a collection of data and it would be practically impossible to test all of them. Thank you!
    Don't forgot to say thanks by giving "Kudos" if I helped solve your problem.
    When a solution is found please mark the post that solves your issue.
    Every problem has a solution!

  • Random email generation

    i need the source code of random email generation.

    Can explain How you want the random email , or you want any unrepeated emails?

  • Random name generator

    Does anyone know how to make a random name generator or have
    any links to pages that could help me?
    Thanks for your time
    Jason

    Something just like the name generator on
    http://www.rftc.com/
    It doesn't seem complex but Im not sure how to do it :S
    Thanks for your time

  • True Random number generation in OSX

    Hi there,
    I have been trying to find some information on how to access the Intel Random number generation hardware on my Mac.
    First I would like to understand which models currently offer this, second I would like to know if there is some library available I could use from either C or any other language, even from Applescript would be good for me.
    Thanks in advance.

    Perhaps these links help:
    http://www.intel.com/software/products/mkl/docs/mklnotes_mac.htm
    (keep in mind that apple typically discourages targeting specific hardware...)
    http://forums.macosxhints.com/showthread.php?t=46359
    http://www.mactricksandtips.com/2008/03/apple-script-random-number-generator.htm l

  • Global random integer generation in a range

    Hello,
    I need a way to achieve a global random integer generation in a range.
    I tried FMs QF05_RANDOM_INTEGER and RANDOM_I4 without success because every time I call them from an object, always get the same number
    For example, FM RANDOM_I4 with RND_MIN = 1 and RND_MAX = 5 gets RND_VALUE = 1 and FM QF05_RANDOM_INTEGER with RAN_INT_MAX = 5 and AN_INT_MIN = 1 gets RAN_INT = 3.
    How can I get a global (with memory) random number generator?
    Regards and thanks in advance.

    Hey run the code below, it will give you different numbers.
    data RAN_INT like QF00-RAN_INT.
    data G_RAN_SEED like QF00-RAN_SEED.
    CALL FUNCTION 'QF05_RANDOM_INTEGER'
        EXPORTING
             RAN_INT_MAX   = 5
             RAN_INT_MIN   = 1
        IMPORTING
             RAN_INT       = RAN_INT
        EXCEPTIONS
             INVALID_INPUT = 1
             OTHERS        = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    write ran_int.
    G_RAN_SEED = ran_int.
    CALL FUNCTION 'QF05_RANDOM_SAVE_SEED'
        EXPORTING
             RAN_SEED_NEXT = G_RAN_SEED

  • File download frm Webdynpro App generates Random Name whn download in EP

    Hi Experts,
    I have developed a webdynpro application where I download a file in the excel format.
    I have written a code to generate the name of the file and have set it to the context attribute.
    When I download the file from the Application
    http://<server>:<port>/webdynpro/dispatcher/local/<project>/<application>
    The name of the downloaded file is perfect
    but when downloaded from the Jave webdynpro Portal Iview we get random names like "CARYHWT9" in the Dialog which stores the file on the local system.
    Is there anything which needs to be done in Iview properties so that when downloaded into local machine we get the same name as we get during the download from the application directly.
    Regards,
    Krishna
    Points will be awarded for helpful answers

    Hi Siva,
    The thread u mentioned is titled as -  Error Message comming in German for invalid date format
    And theres nothing which I could notice that would solve the issue with the download.
    Please let me know if theres some specific thing u want me to do.
    Best Regards,
    Roby..

  • File dwnloded frm Webdynpro App generates Random Name whn downloaded frm EP

    Hi Experts,
    I have developed a webdynpro application where I download a file in the excel format.
    I have written a code to generate the name of the file and have set it to the context attribute.
    When I download the file from the Application
    http://<server>:<port>/webdynpro/dispatcher/local/<project>/<application>
    The name of the downloaded file is perfect
    but when downloaded from the Jave webdynpro Portal Iview we get random names like "CARYHWT9" in the Dialog which stores the file on the local system.
    Is there anything which needs to be done in Iview properties so that when downloaded into local machine we get the same name as we get during the download from the application directly.
    Best Regards,
    Roby..

    Hi Siva,
    The thread u mentioned is titled as -  Error Message comming in German for invalid date format
    And theres nothing which I could notice that would solve the issue with the download.
    Please let me know if theres some specific thing u want me to do.
    Best Regards,
    Roby..

  • Java random names

    import java.util.Scanner;
    import java.io.*;
    import java.util.Random;
    public class RandomName
         public static void main(String[] args) throws IOException
              Scanner key = new Scanner(System.in);
              Random randomNumbers = new Random();
              int n = 0;
              String[] names= new String[50];
              int index = 0;
              int count =0;
              //Opens the file from user
              File file = new File("name.txt");
              Scanner outputFile = new Scanner(file);
              while(outputFile.hasNext())
                   names[index] = outputFile.nextLine();
                   index++;
                   n++;
              //prints out the number of people in the file
              //Store into an array
              //prints out a random name from the file
              System.out.println("Number of people: " + n );
              int x = randomNumbers.nextInt(n);
              System.out.println(names[x]);
              System.out.print("Command? ");
              String command = key.nextLine();
              //contine to loop the program
              //Write to the file
              while(!command.equals("exit"))
                   if(command.equals("n"))
                        x = randomNumbers.nextInt(n);
                        System.out.println(names[x]);
                        System.out.print("Command? ");
                        command = key.nextLine();
                        count++;
                   else if(command.equals("help"))
                        System.out.println(" n    Next random name");
                        System.out.println(" exit Exit the program");     
                        System.out.print(" list List all the unique names that have been");
                        System.out.println(" called as well the number of times");
                        System.out.println(" help Display this message");
                        System.out.print("Command? ");
                        command = key.nextLine();
                   else if(command.equals("list"))
                        System.out.println(count);
                        System.out.print("Command? ");
                        command = key.nextLine();
              outputFile.close();
              //Exit the program if user enter exit
              if(command.equals("exit"))
                   System.out.println("The program has generated " + count + " name(s) with " + "" + "repetition(s)");
                   System.exit(0);
    }Beside using hashmap is there another way count how many names appear more than once using like array
    the random should be like:
    john
    david
    john
    it should printout
    john(2)
    david(1)

    RSun wrote:
    Yea because i have never tried hashmap.That really makes no sense at all. If you're always going to look for a solution that only uses what you know, rather than learning something new when it's perfectly suited to the problem you're solving, you're in for nothing but frustration and unmaintainable code.

  • FrameMaker produces named destinations with random names

    Hi all,
    when I save a FM-document as PDF, the named destinations do not resemble the element IDs. Rather, the names of the destinations seem to be random numericals. This makes it impossible to link to the PDF from external HTML-documents without manually adjusting the links after each PDF-production.
    Is there a way to control the names of the desitnations through output options etc.? This is a production from DITA/XML using Framemaker 7.2 and the DITA OT. Therefore we cannot just add markers in the Framemaker documents because these are generated new during each production run.

    Robert,
    Unless you modify your procedure to insert markers, you're going to be out of luck. The only way to get FM to insert a destination that you can explicitly name and find is to use the newlink marker. You also need to be aware that FM will prepend some code characters to this as well depending upon whether the PDF is generated from a book or a standalone file.
    Shlomo Perets' Timesavers tool gives you more control over inserting the named destinations. See http://www.microtype.com

Maybe you are looking for

  • Nokia 5800 WAP problem

    Hi all! My problem is this.. ever since I updated to the latest firmware my WAP settings doesn't work. I've contacted my service provider and they did send me new settings.. but nothing works.. it doesn't open any web or wap page.. but wi-fi work jus

  • Hp D110 when printing works doc get out of memory error

    get out of memory error when print icon selected from Works

  • E4200 Firmware Won't Generate Backup

    I just upgraded my E4200 v1 to firmware v1.0.06.  In the Advanced Options>Administration>Management, at the bottom of the page are buttons labeled "Back Up Configuration" and "Restore Configuration." When I click on the "Back Up Configuration" button

  • Automated row fetch returns more than one row

    Greetings All, Does anyone know of a way to call a page if the automated row fetch returns more than one row. I have a form with a primary and secondary key. If I search only on the primary key and there is more than one row I would like to call a po

  • External Number Range for Billing documents in CRM

    In CRM, billing document external number range can only be numeric or alpha, but NOT alphanumeric. Is this a bug or is there some legitimate reason to have this limitation. This question stems from a data conversion where the legacy system invoice nu