Number generator

I need to random number generator. My function have to input number to length generated output.

I have to write it in ST (language to plc drivers). In this language I haven't srand() or rand() function so I have to write it.

Anyone help me?

1 Answer

If you just need pseudorandom numbers for a statistical simulation or something like that, try a linear congruential generator or a multiply-with-carry generator. Don't use these sorts of random number generators for anything security-sensitive like generating passwords or encryption keys.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like