Create random generator; Move File dialog implementation to separate file