yojimbos_law

ezan+noobsauce on ash RNG

Dec 22nd, 2016
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. [20:57:30] [hardcore] Noobsauce: how do i generate a random number in ash?
  2. [20:57:40] [hardcore] Ezandora: random(integer)
  3. [20:58:09] [hardcore] Noobsauce: and that's from 0 to int?
  4. [20:58:29] [hardcore] Ezandora: int - 1, inclusive
  5. [20:58:48] [hardcore] CrzyMdScntst123: Jon, it technically can still apply if you consider that potions can shorten the queue for stats.
  6. [20:59:06] [hardcore] CensoredhuntanoMAD: I wonder why'd they made tiny plastic angry vikings appear before actual ones
  7. [20:59:10] [hardcore] Noobsauce: perfect
  8. [20:59:12] [hardcore] Ezandora: it can still apply since the three gates are still there, lurking
  9. [20:59:23] [hardcore] huntanoMAD: Looks a bit mistimed
  10. [20:59:25] [hardcore] JonMW: still, it shouldn't give a hint after I've passed the relevant part of the adventure
  11. [20:59:26] [hardcore] CrzyMdScntst123: So the only issue would be the pluralization of "Gates"
  12. [21:00:32] [hardcore] CrzyMdScntst123: But yeah, it's still technically a relic.
  13. [21:03:44] [hardcore] Noobsauce: so i could say x = 1000 + random(99000) to get a random number from 1000 to 99999
  14. [21:04:22] [hardcore] JonMW: Looks right to me
  15. [21:05:20] [hardcore] Ezandora: x = min + random(max - min + 1) where the generated range is [min, max]
  16. [21:05:59] [hardcore] Noobsauce: nice
Advertisement
Add Comment
Please, Sign In to add comment