Need cup for doubles.
Fixed issue with Random generator.