The first numerical simulations are presented for type-III solar radio bursts in the inhomogeneous solar corona and interplanetary space, that include microscale quasilinear and nonlinear processes, intermediate-scale driven ambient density fluctuations, and large scale evolution of electron beams, Langmuir and ion sound waves, and fundamental and harmonic electromagnetic emission. Bidirectional coronal emission is asymmetric between the upward and downward directions, and harmonic emission dominates fundamental emission. In interplanetary space, fundamental and/or harmonic emission can be important. Langmuir and ion sound waves are bursty and the statistics of Langmuir wave energy agree well with the predictions of stochastic growth theory.