private float[] generateMisc() {
        final int dataLength = ParticleSystem.PARTICLE_COUNT * ParticleSystem.MISC_DATA_SIZE * 6;

        float[] starData = new float[dataLength];

        int offset = 0;
        for (int i = 0; i < ParticleSystem.PARTICLE_COUNT; i++) {
            final float particleSize = MathHelper.mix(0.05f, 0.15f, Math.random());
            float accel = MathHelper.mix(1.1f, 3f, Math.random());
            float rand = (float) Math.random();

            for (int v = 0; v < 6; v++) {
                starData[offset++] = particleSize;
                starData[offset++] = accel;
                starData[offset++] = rand;
            }
        }

        return starData;

    }
Started by Artem Kholodnyi on 11/29/15 6:13 PM -- com.yalantis.starwarsdemo.particlesys
demo/src/main/java/com/yalantis/starwarsdemo/particlesys/ParticlesGenerator.java