Allocated index to random variable per stream and have used it in each expression. Compiling fine, should check whether it runs fine