SOFT253 Coursework Weather Reader
Fork of Soft253-WeatherReader by
DataGenerator.cpp
- Committer:
- Jdumpleton3
- Date:
- 2017-04-21
- Revision:
- 1:8585a8d417dc
File content as of revision 1:8585a8d417dc:
#include <stdlib.h> #include "DataGenerator.h" void DataGenerator::ReadTempHumi(float *pTemp, float *pHumi){ *pTemp = rand() % 3 + 22; *pHumi = rand() % 20 + 40; } float DataGenerator::pressure(){ return (rand() % 20 + 40); } float DataGenerator::temperature(){ return (rand() % 3 + 22); }