資産運用シュミレーション

資産運用シュミレーターを作ってみました。リターンとリスクを%、初期投資額と年間積立額を入力したあとでシミュレーション開始を押すと正規分布乱数で表を作成します

<form>
    <label>リターン <input type="number" id="return" value="7" style="width:80px;"></label><br>
    <label>リスク  <input type="number" id="risk" min="0" value="20" style="width:80px;"></label><br>
    <label>頭金   <input type="number" id="initial" value="300"></label><br>
    <label>年間積立 <input type="number" id="accumulation" value="60"></label><br>
    <p><span id="result1"></span><span id="result2"></span><span id="result3"></span><span id="result4"></span><span id="result5"></span><br>
    <span id="result6"></span></p><br>

    <input type="button" value="シミュレーション開始" id="simulation" onclick="onButtonClick();"><br><br>
</form>
<table id="table1">
    <tr>
        <th>年数</th>
        <th>株価の変動</th>
        <th>元金</th>
        <th>残高</th>
        <th>損益</th>
    </tr>

</table>