Example #1
0
 /// <summary>
 /// Get a random <see cref="WeaponHash"/>. Entries in the exclusion list will be ignored.
 /// </summary>
 /// <param name="exclusions">The list of <see cref="WeaponHash"/> to ignore.</param>
 public static WeaponHash GetRandomWeapon(IEnumerable <WeaponHash> exclusions) => WeaponHashes.SelectRandom(exclusions);
Example #2
0
 /// <summary>
 /// Get a random <see cref="WeaponHash"/>.
 /// </summary>
 public static WeaponHash GetRandomWeapon() => WeaponHashes.SelectRandom();