Added random for long.
Fixed atlas extension.

closes #2618