How do I Implement Lehmer Random Number Generator

Get help using Construct 2

Post » Wed Apr 26, 2017 9:08 am

This is kind of a two-fer.
As an assignment, I've created a game that uses the random(x,y) function to have cars and other objects show up on screen. We've been issued a challenge for extra credit to instead use C++ to implement Lehmer's Random Number Generator. Two-fer because I don't know how to go about using C++ coding in a game created in Construct 2...and because I really don't know how to go about using the Lehmer RNG. Any tips or suggestions would be greatly appreciated.
B
8
S
1
G
1
Posts: 8
Reputation: 441

Post » Wed Apr 26, 2017 10:46 am

You can't use c++ with c2. Also Wikipedia seems to have a good description of that rng.
B
91
S
31
G
103
Posts: 5,238
Reputation: 67,762


Return to How do I....?

Who is online

Users browsing this forum: David181, vaticant, Yahoo [Bot] and 4 guests