---
title: "randn"
sidebar_label: "randn"
description: "Kotlin binding reference: randn."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[Ops](index.md)/[randn](randn.md)

# randn

[common]\
fun [randn](randn.md)(shape: [LongArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long-array/index.html), dtype: [DType](../DType/index.md) = DType.FLOAT32, device: [Placement](../Placement/index.md)? = null): [Tensor](../Tensor/index.md)

`randn(shape: LongArray, dtype: DType = DType.FLOAT32, device: Placement? = null)`: the `randn` operator. Standard-normal random tensor, `N(0, 1)`.