Errors fixed in calculating time to transfer a replica

1) division by integer resulted in answer to be always 0.0
2) random replica selector did not create random numbers exclusively.
That is a single VM could be selected twice.