Fixing random implementation

-For some stupid reason, Range(int, int) is exclusive on the max.
-Also removed System.Threading.Tasks using statement, it's not in 3.5