refactored random ng to a method