I want to add sample test data to my NoteTableModel.
Currently I have it set up like this:
public void buildTestNoteTable(){
String uuid = UUID.randomUUID().toString().substring(0,10);
//System.out.println(uuid);
for (int i = 0; i < 2000; i++){
EssayNote newNote = new EssayNote(i, 20131105, "New Test note" +i, uuid);
noteTableData.add(newNote);
}
}
What I want to do is to have it so that the section that says "Blah Blah Blah" is randomly generated letters with a length of 10. How should I update my current method to be able to do this ?
EDIT: I updated the code using UUID. I replaced the hard coded "Blah Blah Blah" with the uuid and I am now getting a random serial number but I am getting the same number for every instance of note, which I do not want. How can I make it so that every EssayNote has a different UUID ?