added random number generator on 3.js added scenario 4