Sign in to follow this  
Followers 0
Sleepy Wombat

[PLC Sample Code] - Random Number Generator

1 post in this topic

File Name: Random Number Generator File Submitter: Sleepy Wombat File Submitted: 3 Nov 2003 File Category: PLC Sample Code Generates a Pseudo random number using the mixed congrential method. Formula r(i+1) = (a r + b) MOD N This will generate a random number between 0 & N-1 with N = 2 (pwr 20) = 1048576 a = 1909 b = 221571 The MOD operation is the integer Click here to download this file
1 person likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0