anchor.diff:  	U1R1Stream2 = lib_json:get_field(Body10,"_id"),
   	
   	%% Add random data between min and max for the streams
  -	random_data(15,-50.0,50.0,U1R1Stream1),
  -	random_data(15,150.0,350.0,U1R1Stream2),
  +	sinus_random_data(15,U1R1Stream1,1000),
  +	sinus_random_data(15,U1R1Stream2,1000),
   	
   	%% Create streams for resource2 for user1
   	{ok, {{_Version11, 200, _ReasonPhrase11}, _Headers11, Body11}} = httpc:request(post, {"http://localhost:8000/streams", [],"application/json", "{\"resource_id\":\""++ U1Resource2 ++"\",\"name\":\"Stream1\",\"tags\":\"[temperature,celsius,Norrtalje]\",\"description\":\"Temperature in Celsius in Norrtalje\",\"private\":\"false\",\"type\":\"Temperature\",\"unit\":\"celsius\",\"accuracy\":0.95,\"min_val\":-50.0,\"max_val\":50.0,\"active\":\"true\",\"user_ranking\":10.0,\"subscribers\":6,\"last_updated\":\"2013-10-05T010502.0000\", \"creation_date\":\"2013-10-01\",\"history_size\": 5000,\"location\":\"59.7667,18.7000\"}"}, [], []),
  
positive.code: 	U1R2Stream2 = lib_json:get_field(Body12,"_id"),
  	
  	%% Add random data between min and max for the streams
  	random_data(15,-50.0,50.0,U1R2Stream1),
  	random_data(15,150.0,350.0,U1R2Stream2),
  	
  	%% Create streams for resource3 for user1
  	{ok, {{_Version13, 200, _ReasonPhrase13}, _Headers13, Body13}} = httpc:request(post, {"http://localhost:8000/streams", [],"application/json", "{\"resource_id\":\""++ U1Resource3 ++"\",\"name\":\"Stream1\",\"tags\":\"[temperature,celsius,Sala]\",\"description\":\"Temperature in Celsius in Sala\",\"private\":\"false\",\"type\":\"Temperature\",\"unit\":\"celsius\",\"accuracy\":0.95,\"min_val\":-50.0,\"max_val\":50.0,\"active\":\"true\",\"user_ranking\":10.0,\"subscribers\":16,\"last_updated\":\"2013-10-05T010502.0000\", \"creation_date\":\"2013-10-01\",\"history_size\": 5000,\"location\":\"59.9167,16.6000\"}"}, [], []),
  
negative.code: 	U4R1Stream1 = lib_json:get_field(Body27,"_id"),
  	
  	%% Add random data between min and max for the streams
  	sinus_random_data(15,U4R1Stream1,1000),
  	
  	%% Create stream for resource2 for user4
  	{ok, {{_Version28, 200, _ReasonPhrase28}, _Headers28, Body28}} = httpc:request(post, {"http://localhost:8000/streams", [],"application/json", "{\"resource_id\":\""++ U4Resource2 ++"\",\"name\":\"Stream1\",\"tags\":\"[water-level,Norrtalje]\",\"description\":\"Water-level in Nortaljean in Uppsala\",\"private\":\"false\",\"type\":\"Water-level\",\"unit\":\"meter\",\"accuracy\":0.95,\"min_val\":0.0,\"max_val\":10.0,\"active\":\"true\",\"user_ranking\":17.0,\"subscribers\":19,\"last_updated\":\"2013-10-08T070502.0000\", \"creation_date\":\"2013-10-01\",\"history_size\": 700,\"location\":\"59.7667,18.7000\"}"}, [], []),
  	U4R2Stream1 = lib_json:get_field(Body28,"_id"),
  	
  	%% Add random data between min and max for the streams
  	sinus_random_data(15,U4R2Stream1,1000),
  
  	%% Create stream for resource3 for user4
  	{ok, {{_Version29, 200, _ReasonPhrase29}, _Headers29, Body29}} = httpc:request(post, {"http://localhost:8000/streams", [],"application/json", "{\"resource_id\":\""++ U4Resource3 ++"\",\"name\":\"Stream1\",\"tags\":\"[water-level,Sala]\",\"description\":\"Water-level in the spring in Sala\",\"private\":\"false\",\"type\":\"Water-level\",\"unit\":\"meter\",\"accuracy\":0.75,\"min_val\":0.0,\"max_val\":9.0,\"active\":\"true\",\"user_ranking\":5.0,\"subscribers\":9,\"last_updated\":\"2013-10-09T060502.0000\", \"creation_date\":\"2013-10-01\",\"history_size\": 8900,\"location\":\"59.9167,16.6000\"}"}, [], []),
  	U4R3Stream1 = lib_json:get_field(Body29,"_id"),
  	
  	%% Add random data between min and max for the streams
  	sinus_random_data(15,U4R3Stream1,1000),
  
  	%% Create stream for resource4 for user4
  	{ok, {{_Version30, 200, _ReasonPhrase30}, _Headers30, Body30}} = httpc:request(post, {"http://localhost:8000/streams", [],"application/json", "{\"resource_id\":\""++ U4Resource4 ++"\",\"name\":\"Stream1\",\"tags\":\"[water-level,Stockholm]\",\"description\":\"Water-level in the spring in Stockholm\",\"private\":\"false\",\"type\":\"Water-level\",\"unit\":\"meter\",\"accuracy\":0.97,\"min_val\":0.0,\"max_val\":22.0,\"active\":\"true\",\"user_ranking\":18.0,\"subscribers\":1798,\"last_updated\":\"2013-10-15T010502.0000\", \"creation_date\":\"2013-09-01\",\"history_size\": 50000,\"location\":\"59.3294,18.0686\"}"}, [], []),
  	U4R4Stream1 = lib_json:get_field(Body30,"_id"),
  	
  	%% Add random data between min and max for the streams
  	sinus_random_data(15,U4R4Stream1,1000),
  	ok.
  
  	
  