https://github.com/dv-br-automation/RandomLib
A library to generate random variables in any language in Automation Studio Project
https://github.com/dv-br-automation/RandomLib
automation-studio control-systems
Last synced: 3 months ago
JSON representation
A library to generate random variables in any language in Automation Studio Project
- Host: GitHub
- URL: https://github.com/dv-br-automation/RandomLib
- Owner: dv-br-automation
- License: mit
- Created: 2016-11-03T13:32:38.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-07T19:28:49.000Z (about 8 years ago)
- Last Synced: 2024-05-21T20:09:49.263Z (about 1 year ago)
- Topics: automation-studio, control-systems
- Language: C
- Homepage:
- Size: 4.88 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.txt
- License: LICENSE
Awesome Lists containing this project
README
RandomLib is a library to generate random data.
Background
Random function is not natively available in all languages supported by Automation Studio.Implimentation
This library encapsulates rand() from ANSI C, and impliments following function blocks to generate random values.
- int random(void)
- unsigned int rand_interval(unsigned int min, unsigned int max)
- void RandomValue(struct RandomValue* inst)The function blocks above can be used in any language supported by Automation Studio.