Added the "random" flag