Model for Simulating ECG and PPG Signals with Arrhythmia Episodes 1.3.0

File: <base>/ECG_PPG_model/simPAF_gen_rand_num.m (486 bytes)
function number = simPAF_gen_rand_num(rangeLow, rangeHigh)
%
% number = simPAF_gen_rand_num() returns a random number from the interval
% [rangeLow, rangeHigh].
%
% Copyright (C) 2017  Andrius Petrenas
% Biomedical Engineering Institute, Kaunas University of Technology
%
% Available under the GNU General Public License version 3
% - please see the accompanying file named "LICENSE"
%
number = (rangeHigh-rangeLow)*rand(1,1) + rangeLow;
number = round(number*100)/100;
end