I have 2 vectors which I want to generate randomly. The 2 vectors are input and target vector below that will be passed as parameters to the perceptron algorithm. 

```
input = [-1 -1 1 1; -1 1 1 -1]; 
target =[1 0 0 1];

```

The vectors will be between -1 and 1. I tried using the solution from [How to generate random vector from specific user defined range?](https://stackoverflow.com/questions/24620729/how-to-generate-random-vector-from-specific-user-defined-range) however was not able to get this to work.