A 2.5D micromagnetic solver for randomly distributed magnetic thin objects