Announcement: Why not try our official idea generator for inspiration when making puzzles?


Caravel Forum : DROD Boards : Architecture : A working PRNG implementation with LCG
New Topic New Poll Post Reply
Poster Message
uncopy2002
Level: Smiter
Rank Points: 431
Registered: 07-28-2014
IP: Logged

File: RNG_LCG.hold (2.1 KB)
Downloaded 43 times.
License: Public Domain
icon A working PRNG implementation with LCG (+3)  
So, since somebody mentioned a RNG in DROD, I decided to implement one quickly. Turns out DROD clamps all values beween range -2147483647 to 2147483647, which broke the previous attempt at implementing one, so some tricks (and no sorcery) is used to circumvent that.

Attached hold has a room that demonstrates the implementation.
02-12-2016 at 01:04 AM
View Profile Send Private Message to User Show all user's posts Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Architecture : A working PRNG implementation with LCG
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.