There's unnecessary cast:
```java
generator.generate() * longRange
```