merged randomMatrix to random