---
sourceDocument: 호주 API 참조
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/ko-KR/api-reference

 Release :

    - australia

ft:locale :

    - ko-KR

ft:publication_title :

    - 호주 API 참조

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# GlideSecureRandomUtil - 범위, 전역

# GlideSecureRandomUtil - 범위, 전역 {#ariaid-title1}

* 릴리스 버전: Australia
* 
* 업데이트 날짜 2026년 03월 12일
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 소요 시간: 1분

GlideSecureRandomUtil API는 정수, 긴 값 및 문자열을 생성하는 메서드를 제공합니다.

이 클래스에 대한 생성자가 없습니다. 메서드는 정적 객체 GlideSecureRandomUtil을 통해 액세스됩니다. GlideSecureRandomUtil 클래스는 전역 및 범위가 지정된 애플리케이션 모두에서 사용할 수 있습니다.

## GlideSecureRandomUtil - getSecureRandomInt() {#ariaid-title2}

의사 임의 정수를 생성합니다.
{#GlideSRU-getSecureRandomInt__table_hjl_4q5_qr__entry__3}

| 이름 | 유형 | 설명 |
|-|-|-|
| 안 함 |   |   |
[표 1. 매개변수]

{#GlideSRU-getSecureRandomInt__table_hjl_4q5_qr} {#GlideSRU-getSecureRandomInt__table_ijl_4q5_qr__entry__2}

| 유형 | 설명 |
|-|-|
| 번호 | 의사 무작위로 생성된 정수입니다. |
[표 2. 반환]

{#GlideSRU-getSecureRandomInt__table_ijl_4q5_qr}  

    gs.info(GlideSecureRandomUtil.getSecureRandomInt());

출력:

    1976146969

## GlideSecureRandomUtil - getSecureRandomIntBound(숫자 범위) {#ariaid-title3}

0(포함)과 메서드에 전달하는 경계(제외) 값 사이의 의사 임의 정수를 생성합니다.
{#GlideSRU-getSecureRandomIntBound__table_hjl_4q5_qr__entry__3}

| 이름 | 유형 | 설명 |
|-|-|-|
| 바인딩 | 번호 | 경계된 값입니다. |
[표 3. 매개변수]

{#GlideSRU-getSecureRandomIntBound__table_hjl_4q5_qr} {#GlideSRU-getSecureRandomIntBound__table_ijl_4q5_qr__entry__2}

| 유형 | 설명 |
|-|-|
| 번호 | 의사 무작위로 생성된 정수입니다. |
[표 4. 반환]

{#GlideSRU-getSecureRandomIntBound__table_ijl_4q5_qr}  

    gs.info(GlideSecureRandomUtil.getSecureRandomIntBound(100));

출력:

    55

## GlideSecureRandomUtil - getSecureRandomLong() {#ariaid-title4}

의사 임의 긴 값을 생성합니다.
{#GlideSRU-getSecureRandomLong__table_hjl_4q5_qr__entry__3}

| 이름 | 유형 | 설명 |
|-|-|-|
| 안 함 |   |   |
[표 5. 매개변수]

{#GlideSRU-getSecureRandomLong__table_hjl_4q5_qr} {#GlideSRU-getSecureRandomLong__table_ijl_4q5_qr__entry__2}

| 유형 | 설명 |
|-|-|
| 번호 | 의사 무작위로 생성된 64비트 정수입니다. |
[표 6. 반환]

{#GlideSRU-getSecureRandomLong__table_ijl_4q5_qr}  

    gs.info(GlideSecureRandomUtil.getSecureRandomLong());

출력:

    792836514424092500

## GlideSecureRandomUtil - getSecureRandomString(Number length) {#ariaid-title5}

지정된 길이를 가진 임의의 영숫자 문자열을 작성합니다.
{#GlideSRU-getSecureRandomString__table_hjl_4q5_qr__entry__3}

| 이름 | 유형 | 설명 |
|-|-|-|
| 길이 | 번호 | 문자열의 길이(문자 수)입니다. |
[표 7. 매개변수]

{#GlideSRU-getSecureRandomString__table_hjl_4q5_qr} {#GlideSRU-getSecureRandomString__table_ijl_4q5_qr__entry__2}

| 유형 | 설명 |
|-|-|
| 문자열 | 임의로 생성된 문자열입니다. |
[표 8. 반환]

{#GlideSRU-getSecureRandomString__table_ijl_4q5_qr}  

    gs.info(GlideSecureRandomUtil.getSecureRandomString(12));

출력:

    1XzVI0sLfVlT


