Files
nethack/doc
PatR 03476a7c78 get_rnd_text() for rumors and other stuff
Solve the uneven distribution situation that has been present for
picking random rumors for a long time and for random engravings,
epitaphs, and hallucinatory monster names since 3.6.0.  This relies
on the previous partial solution where short lines have been padded
to a longer length.  When that length is N and random seek lands in
a long line of length L, retry if the position is in the first L-N
characters.  Put differently, it if takes more than N characters to
reach the next newline, reject that random seek and try again.  This
effectively makes long lines behave as if they had the same length
of N as the short lines have been padded to and when all lines are
the same length, all entries have the same chance to be chosen.
2021-11-27 12:23:01 -08:00
..
2020-02-15 13:08:34 -08:00
2020-11-28 08:59:03 -05:00
2020-11-28 08:59:03 -05:00
2020-01-27 18:11:43 -05:00
2020-02-15 14:42:00 -08:00
2021-01-03 13:37:25 -06:00
2020-01-19 23:09:53 -05:00
2021-01-30 12:28:23 -05:00
2018-04-25 16:54:50 -04:00