private void initializeDynamicVariables() {
        evaluationContext.setVariable("randomNumber2", RandomUtils.randomNumeric(2));
        evaluationContext.setVariable("randomNumber4", RandomUtils.randomNumeric(4));
        evaluationContext.setVariable("randomNumber6", RandomUtils.randomNumeric(6));
        evaluationContext.setVariable("randomNumber8", RandomUtils.randomNumeric(8));
        evaluationContext.setVariable("randomNumber12", RandomUtils.randomNumeric(8));

        evaluationContext.setVariable("randomString4", RandomUtils.randomAlphabetic(4));
        evaluationContext.setVariable("randomString6", RandomUtils.randomAlphabetic(6));
        evaluationContext.setVariable("randomString8", RandomUtils.randomAlphabetic(8));

        evaluationContext.setVariable("uuid", UUID.randomUUID().toString());
        evaluationContext.setVariable("randomPort", RandomUtils.nextInt(STARTING_PORT_RANGE, ENDING_PORT_RANGE));

        evaluationContext.setVariable("localDateTime", LocalDateTime.now(ZoneId.systemDefault()).toString());
        evaluationContext.setVariable("localDateTimeUtc", LocalDateTime.now(Clock.systemUTC()).toString());

        val localStartWorkDay = LocalDate.now(ZoneId.systemDefault()).atStartOfDay().plusHours(8);
        evaluationContext.setVariable("localStartWorkDay", localStartWorkDay.toString());
        evaluationContext.setVariable("localEndWorkDay", localStartWorkDay.plusHours(9).toString());

        val localStartDay = LocalDate.now(ZoneId.systemDefault()).atStartOfDay();
        evaluationContext.setVariable("localStartDay", localStartDay.toString());
        evaluationContext.setVariable("localEndDay",
            localStartDay.plusHours(HOUR_23).plusMinutes(MINUTE_59).plusSeconds(SECOND_59).toString());

        evaluationContext.setVariable("localDate", LocalDate.now(ZoneId.systemDefault()).toString());
        evaluationContext.setVariable("localDateUtc", LocalDate.now(Clock.systemUTC()).toString());

        evaluationContext.setVariable("zonedDateTime", ZonedDateTime.now(ZoneId.systemDefault()).toString());
        evaluationContext.setVariable("zonedDateTimeUtc", ZonedDateTime.now(Clock.systemUTC()).toString());
    }
With application context.

@param applicationContext the application context
@return the spring expression language value resolver
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/spring/SpringExpressionLanguageValueResolver.java