TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

What if there's a voting system where one needs 43% or more to win? (explained)

1 pointsby vitarnixofntrntover 1 year ago
In my previous post, I made a pseudo random number generator (licensed under the Public Domain) where every bit is 42.5% random in 10 lines of code and it outputs a byte every clock cycle. Thoughts on this?<p>Basically, it&#x27;s a filter against my simple pseudorandom number generator so it keeps narrowly losing and winning for it is an extreme rarity.<p>To win, one idea gets 43% or more of the votes. If two ideas get 43% or more of the votes, restart. Or it could not restart but something else, am open to changing my mind about the restarting idea.

2 comments

pavel_lishinover 1 year ago
&gt; <i>In my previous post, I made a pseudo random number generator</i><p>Someone pointed out that what you made is just a function that outputs triangle numbers: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=39462194">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=39462194</a><p>So, it&#x27;s nowhere near a pseudo-random number generator; for any given output, it&#x27;s trivial to guess the next (and previous) numbers.<p>I also don&#x27;t understand where your 42.5%&#x2F;43% numbers are coming from. What does it mean for &quot;every bit is 42.5% random&quot;? How does your code output a byte every clock cycle?
评论 #39467711 未加载
necovekover 1 year ago
In most electoral systems, winning 43% of the vote is usually sufficient to gather a representative majority.<p>Even in USA which is highly bipartisan, people vote is not directly linked to electoral votes. In Serbia (and possibly many other countries), there is a census and parties under it have all the votes for them basically ignored (I remember a vote from ~10 years ago with a census of 5% when less than 20% of the voting population resulted in over 67% of parliament seats).
评论 #39467640 未加载