Moving to a non sql specific random implementation