TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

3 点作者 kpgiskpg超过 5 年前

1 comment

7373737373超过 5 年前
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 未加载