News for hackers. Stuff that matters.
Re:Show HN: Grab a Random ArXiv Paper by vhantz on Friday June 06, 2025 @08:43AM (#44200284)
> Note that this skews the distribution heavily in favor of topics that are less common, but it should get the job done. Suggestions for improvements are welcome.

You could use the max number of paper in each topic to weight it and make the distribution uniform.

Re:Show HN: Grab a Random ArXiv Paper by jegp on Saturday June 07, 2025 @03:06PM (#44211821)
That's a great point. I thought about something similar, but I also realized the arXiv numbers are growing like crazy, so I wonder how long it'll take for the (hardcoded) numbers to be deprecated. One could of course add some kind of cronjob to update the numbers, but that sounds like a lot of work...