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

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

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

# randint

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

`randint(low: Long, high: Long, shape: LongArray, dtype: DType = DType.INT64, device: Placement? = null)`: the `randint` operator. Uniform random integers in the half-open range `[low, high)`.