Problems that are obvious:
1. These variables are inside the function:
rollSpan = 0;
doubleCount = 0;
As a result, they will always be initialized to 0 whenever the function is called
2. Because of point 1 and there is no increment for rollSpan, it will always be zero.
3. Because of point 1, doubleCount will either be 0 or 1.
4. The code to display rollSpan and doubleCount made no sense.
5. Do you have a function called RandomInt?
Solutions to the various points:
1. Move the rollSpan=0 and doubleCount=0 outside of the function.
2. add rollSpan++ inside the function.
4. display the result of the variable, e.g.
document.getElementById('doubleCount').innerHTML = doubleCount;
5. Only you know.