Rogue: Savage Rats, a retro-themed dungeon crawler
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rogue-savage-rats/src/mightypork/test/TestIonArray.java

26 lines
443 B

package mightypork.test;
import java.io.File;
import java.io.IOException;
import java.util.Random;
import mightypork.util.files.ion.Ion;
public class TestIonArray {
public static void main(String[] args) throws IOException
{
byte[] array = new byte[1024 * 8];
Random rand = new Random();
for (int i = 0; i < array.length; i++) {
array[i] = (byte) rand.nextInt();
}
Ion.toFile(new File("hello.ion"), array);
}
}