Returns the rawcode ID of a random unit of the specified level. The unit chosen
will come from the set of units that include or are assigned to the base tileset
of the map. Passing a level of -1 is equivalent to picking a creep of any level.
If there are no units of the specified level, the returned value is 0.
Returns the rawcode ID of a random unit of the specified level. The unit chosen will come from the set of units that include or are assigned to the base tileset of the map. Passing a level of -1 is equivalent to picking a creep of any level. If there are no units of the specified level, the returned value is 0.