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.

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

1 pointsby Rustover 13 years ago
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

Rustover 13 years ago
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>