Added missing php version constraints
Merge pull request #4193 from GrahamCampbell/4.1-composer

[4.1] Added Missing PHP Version Constraints
Improved random