Invoke srand before using Random.rand