Statistics for Lasing action and supercontinuum generation in nano- and micro-structures