Files
nethack/include
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
..
2021-01-03 13:37:25 -06:00
2021-02-07 22:25:25 -06:00
2020-10-14 09:25:45 -07:00
2021-02-08 00:11:07 -05:00
2021-11-26 21:56:58 -08:00
2021-10-24 18:04:57 -04:00
2021-10-11 13:36:10 -04:00
2021-01-26 21:06:16 -05:00
2019-01-28 10:02:08 +01:00
2021-01-20 22:18:34 -06:00
2020-12-04 09:30:21 +02:00
2021-07-23 10:41:57 -07:00
2021-11-25 00:47:45 -08:00
2021-01-26 21:06:16 -05:00
2021-10-15 15:43:23 -07:00
2021-09-18 19:51:04 -04:00
2020-08-12 16:15:28 -07:00
2021-01-31 14:15:08 -05:00
2021-03-14 15:12:46 -07:00
2021-10-21 08:48:23 -04:00
2021-03-13 18:18:53 -08:00
2021-09-18 19:51:04 -04:00
2021-09-20 09:32:40 -04:00
2021-09-18 19:51:04 -04:00
2021-01-26 10:27:51 -05:00