---
schema_version: "1"
id: 7359da2ec7ea122f8915b0da6d900f6001afae30a5dd5834835d9bef6275c5de
title: random
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.3/dw-core-functions-random.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.3/dw-core-functions-random
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 63b33882195686ee8e340f54b109635fd2858927a719f7670b3922912657cf64
description: MuleSoft Documentation Site
release: "2.3"
latest: false
---
# random

## [](#random1)random(): Number

`0.0`​ 以上 ​`1.0`​ 未満の疑似乱数を返します。

### [](#例)例

次の例では、疑似乱数を生成して 1000 を掛けます。

#### [](#ソース)ソース

```DataWeave
%dw 2.0
output application/json
---
{ price: random() * 1000 }
```

#### [](#出力)出力

```JSON
{ "price": 65.02770292248383 }
```