Question: I have created a random number generator connected to an array of images, one of these images are shown randomly to the user when they load the page. 

I'm struggling to figure out how to put one of these images in local storage so the same image does not appear when they reload the page, I just do not know how to do it.

Here is my JSFiddle if you need it, I don't know how to show the images on these though I hope that doesn't cause issues: <https://jsfiddle.net/Syystole/10mxjs9v/4/>

HTML

```
<img src="" width="305" height="312" id="myPicture" alt="some image">

```

JS

```
window.onload = choosePic; // Run Function When Website Runs
var myPix = new Array("./images/service2.png","./images/service3.png","./images/service4.png"); //Array of 3

function choosePic() {
    randomNum = Math.floor((Math.random() * myPix.length)); //Random Number Generator based on the number of pictures in array
    document.getElementById("myPicture").src = myPix[randomNum]; //Random Number with image is set in HTML
}

```

Answer: 
The official position of the developers of cpprestsdk is the following:

<https://github.com/Microsoft/cpprestsdk/issues/202>

> 
> We don't officially support mingw on Windows; if you're able to get this to work please post back with your results.
> 
> 
> 

Right now the output of the make command contains 264 errors, most of them are:

* error: '\_ASSERTE' was not declared in this scope
* error: looser throw specifier for ...
* overriding 'virtual const char\* std::exception::what() const noexcept'
* there are no arguments to ... that depend on a template parameter, so a declaration of ... must be available [-fpermissive]
* static assertion failed: type is not supported for extraction from a stream
* ... is not a type
* need 'typename' before ... because ... is a dependent scope
* expected ';' before ...
* expected primary-expression before '\*' token
* ...

I guess fix them will require to deeply edit the code.
All these errors seem to be warnings treated as errors. And almost all of of them are rather harmless (except for reorder). You probably have `-Werror` "warnings as errors" option turned on somewhere is CMAKE files.