Update RandomFileInputFormat.java

Sampling method updated, now does take into consideration given split size limitations