JSFiddle - React, Tailwind, and code Playground

HTML

<form ng-controller="SampleController">
    <input type="text" ng-model="a" />
    <br/>
    <input type="text" ng-model="b" />
    <br/>
    <input type="text" ng-model="c" />
    <br/>
    <input type="text" ng-model="d" />
    <br/>
    <input type="text" ng-model="e" />
    <br/><span>{{a}}{{b}}{{c}}{{d}}{{e}}</span>

    <br/>
    <button ng-click="change()">Change</button>
</form>

JavaScript

angular.module('changeSample', [])
    .controller('SampleController', ['$scope', function ($scope) {
    $scope.a = 1;
    $scope.b = 2;
    $scope.c = 3;
    $scope.d = 4;
    $scope.e = 5;

    $scope.change = function () {
        var rand = Math.floor(Math.random()*5);
        if (rand == 0) {
            $scope.a = $scope.a+1;
        }
        if (rand == 1) {
            $scope.b = $scope.b+1;
        }
        if (rand == 2) {
            $scope.c = $scope.c+1;
        }
        if (rand == 3) {
            $scope.d = $scope.d+1;
        }
        if (rand == 4) {
            $scope.e = $scope.e+1;
        }
    };
}]);