HaXe - Generic Function Error

Jan 4th, 2016
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public static function PickRandomFromArrayT<T>(_tArray:Array<T>){
  2.     var randomInt :Int = Math.round(Math.random()*(_tArray.length - 1));
  3.     var elementT :T = _tArray[randomInt];
  4.     return elementT;
  5. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add to your ad blocker whitelist or disable your adblocking software.