Create random files with random content with Java  

By Ulrich Krause | 11/16/20 4:28 AM | Development - Notes / Domino | Added by Roberto Boccadoro

I was playing with DAOS in Domino 12 recently and needed a way to create thousands of test files with a given file size and random content. I did not want to use existing files with real data for my tests. There are several programs available for Linux and Windows. Google for it. But as a developer, I should be able to create my one tool. Here is some sample Java code that uses java.util.Random to create filnames and content in an easy way.