Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
November 22, 2024, 04:27:36 am
News:
If you can't login, please
contact us
with your username and e-mail so we can fix it.
Home
Help
Search
Calendar
Login
Register
OpenXcom Forum
»
Contributions
»
Programming
»
RNG innerworkings?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: RNG innerworkings? (Read 5092 times)
Ninawindia
Captain
Posts: 66
Certified cat girl, nya~
RNG innerworkings?
«
on:
April 18, 2019, 02:12:31 pm »
Hi, figured this might be the best place to ask. Anyone know how the rng works? As doing certain actions leads to certain things and I'm just genuinely curious as to how this works out/ how they worked it out.
Logged
Meridian
Global Moderator
Commander
Posts: 9084
Re: RNG innerworkings?
«
Reply #1 on:
April 18, 2019, 04:26:30 pm »
The RNG is just a pseudo-RNG (
https://en.wikipedia.org/wiki/Pseudorandom_number_generator
)... which means that
exactly
the same actions on the same starting point will lead to the same results.
But as soon as you have a tiny little difference in actions or starting point somewhere, the result can be completely different.
«
Last Edit: April 18, 2019, 04:31:10 pm by Meridian
»
Logged
Yankes
Global Moderator
Commander
Posts: 3349
Re: RNG innerworkings?
«
Reply #2 on:
April 18, 2019, 05:14:38 pm »
For comparison:
https://www.youtube.com/watch?v=pq3x1Jy8pYM
Only caveat is that doom RNG have cycle length of 255 and OXCE have cycle length around millions.
From implementation perspective they are different but from mathematic perspective they are same.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
OpenXcom Forum
»
Contributions
»
Programming
»
RNG innerworkings?