1. Animals
  2. Abilities
  3. Conditions
  4. Tool/Weapon
  5. Equipped
  6. Food/Medicine
  7. Items
  8. Attributes
  9. Creatures
  10. Blocks
  11. Props
  12. API Types
  13. API Functions

LT_random

integer LT_random()

Gets the next random number from generator. To get a random number between 0 and N-1, use the modulus. For example, LT_random()%30 returns a random number between 0 and 29.