DataOutput dataOutput = new DataOutputImpl();
boolean b = random.nextBoolean();
dataOutput.writeBoolean(b);
byte[] bytes = new byte[10];
random.nextBytes(bytes);
dataOutput.writeByte(bytes[0]);
dataOutput.writeBytes(bytes);
double d = random.nextDouble();
dataOutput.writeDouble(d);
float f = random.nextFloat();
dataOutput.writeFloat(f);