|
|
|
|
|
by dimden
847 days ago
|
|
It is pretty similar to Neocities. A little bit of differences are:
- you can style your site box for discovery page
- no limit for file types and some paid plan differences:
- ftp support
- up to 5 custom domains
- cheaper (you can get 1 custom domain for $1 or 5 and all perks for $3 vs neocities' $5) |
|
If I may suggest another algorithm, something like picking from most popular to least with probability ~1/(rank+k)^p, where p is any number >1, for example set p=1.5, k=10.
It can be implemented the following way (by computing the integral of the probability distribution):
(1) Have sorted index by popularity with n items
(2) Pick a random (double) r between 0 and 1
(3) The chosen index is (if I did my integrals right;round to nearest integer):
i = ( k^(p-1)*(n-1+k)^(p-1) / ( (r+1)*(n-1+k)^(p-1) - r*k^(p-1) ) ) ^ 1/(p-1) - k