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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: How Can I Create an RNG Without a Seed? In LOLCode?

1 点作者 Rust超过 13 年前
Short version: I'm torturing myself with LOLCode (http://lolcode.com/specs/1.2) right now, and I'm trying to figure out how to create a random number generator.<p>Using the LCI interpreter (http://icanhaslolcode.org/), I can't access the file system (so no /dev/random for me), there is no built-in RNG, and I'm trying to avoid asking the user for a seed value if at all possible.<p>I have some really, really horrible code in place now, but I'm hoping someone better versed in number theory and CS can either help with the math involved, or point me to some of the right places on the net with information on this.<p>Thanks HN!

1 comment

Rust超过 13 年前
Clickers:<p><a href="http://lolcode.com/specs/1.2" rel="nofollow">http://lolcode.com/specs/1.2</a><p><a href="http://icanhaslolcode.org/" rel="nofollow">http://icanhaslolcode.org/</a>