Active control of the pump spatial profile is proposed to exercise control over random laser emission. We demonstrate numerically the selection of any desired lasing mode from the emission spectrum. An iterative optimization method is employed, first in the regime of strong scattering where modes are spatially localized and can be easily selected using local pumping. Remarkably, this method works efficiently even in the weakly scattering regime, where strong spatial overlap of the modes precludes spatial selectivity. A complex optimized pump profile is found, which selects the desired lasing mode at the expense of others, thus demonstrating the potential of pump shaping for robust and controllable singlemode operation of a random laser.PACS numbers: 42.55. Zz,42.25.Dd Multiple scattering of light in random media can be actively manipulated through spatial shaping of the incident wavefront [1]. This technique has allowed advances in focusing [2][3][4], and imaging [5,6], paving the road to actual control of light transport in strongly scattering media [7][8][9]. Introducing gain in disordered media allows amplification of multiply scattered light, leading to the observation of random lasing [10]. The broad range of systems where it has been studied [11] and the fundamental questions it has raised [12,13] has captivated the community for this last decade. Prospective of random lasing is however strongly hindered by the absence of emission control: random lasers are highly multimode with unpredictable lasing frequencies and polydirectional output. Manipulation of the underlying random structure [14][15][16][17][18][19][20][21][22][23] and recent work constraining the range of lasing frequencies [24,25] have resulted in significant progress toward possible control. However, the ability to choose a specific frequency in generic random lasing systems has not yet been achieved. The spatial profile of the pump is an interesting degree of freedom readily available in random laser (e.g., [26,27]). In a regime of very strong scattering where the modes of the random system are spatially localized [28], local pumping allows selection of spatially non-overlapping modes [29,30]. In weaker scattering media however (e.g., [31][32][33]), several hurdles appear toward achieving fine control. Selecting modes is complicated by a narrow distribution of lasing thresholds [34,35] and spatial mode overlap. Increased pumping required in these lossy systems begins to alter the random laser itself. Moreover, modifying the shape of the pump introduces changes to both the spatial and spectral properties of lasing modes [33,[36][37][38]. Such difficulties are typically absent in more conventional lasers, which have employed pump shaping, both electrically [39][40][41][42] and optically [43], to select favorable lasing modes. The question is, can shaping of the incident pump field achieve taming of random lasers?In this letter, we exercise control over the distribution of lasing thresholds via the pump geometry to choose the random laser em...