?  isn't this equivalent to:

```
numSeeds =  totalNodes * percentage;
if (numSeeds >= 100)
    numSeeds = 100;
```