Added valueForIdiom helpers to switch only between phone and pad
Fixed rand functions