FIxed it so defaulr random number generation is exclusive of upper limit and got successful test of WSN temporal model.