Three-dimensional simulations of quantum confinement and random dopants effects in nanoscale