Fixed d-cubes generator