upgraded random to largeType
upgraded random to largeType