Advertisement
acegiak

Untitled

Feb 26th, 2023
1,320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var total = 0
  2. for row in propRow.rows:
  3.     total += row.weight
  4. var select = rng.randf()*total
  5. for row in propRow.rows:
  6.     total -= row.weight
  7.     if total < select:
  8.         return row
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement