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