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.

Random RGB values that average to N; or, Pointlessness and Probability

3 pointsby kpgiskpgover 5 years ago

1 comment

7373737373over 5 years ago
For a little project of mine [0], I want to generate a <i>set</i> of uniformly distributed RGB values that then average to another RGB value which is known in advance. Would this be possible using the same approach?<p>Edit: Yes, it seems to, instead of generating and summing over RGB, it would be over all the R, G and B values separately.<p>Edit2: Hmmm, if the number of RGB values is large, the combinatorics involved seem to make it computationally infeasible...<p>[0] <a href="https:&#x2F;&#x2F;qewasd.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;qewasd.com&#x2F;</a>
评论 #21613573 未加载