---
title: thunder.clang.uniform
canonical: >-
  https://lightning.ai/docs/thunder/stable/api-reference/generated/thunder.clang.uniform
---
# thunder.clang.uniform {#thunder-clang-uniform}

### `thunder.clang.uniform(shape, minval=0.0, maxval=1.0, *, device, dtype)` {#thunder.clang.uniform}

[\[source\]](https://github.com/Lightning-AI/lightning-thunder/blob/0.2.6/thunder/core/langctxs.py#L278-L289)

Return type:

[`TensorProxy`](/docs/thunder/core/generated/thunder.core.proxies.TensorProxy#thunder.core.proxies.TensorProxy "thunder.core.proxies.TensorProxy")

Parameters:

*   **shape** ([_Sequence_](https://docs.python.org/3/library/collections.abc.html#collections.abc.Sequence "(in Python v3.15)")_\[_[_int_](https://docs.python.org/3/builtins/functions.html#int "(in Python v3.15)")_\]_) –
    
*   **minval** ([_numbers.Number_](https://docs.python.org/3/library/numbers.html#numbers.Number "(in Python v3.15)") _|_ _thunder.core.proxies.NumberProxy_) –
    
*   **maxval** ([_numbers.Number_](https://docs.python.org/3/library/numbers.html#numbers.Number "(in Python v3.15)") _|_ _thunder.core.proxies.NumberProxy_) –
    
*   **device** ([_Union_](https://docs.python.org/3/library/typing.html#typing.Union "(in Python v3.15)")_\[_[_str_](https://docs.python.org/3/builtins/stdtypes.html#str "(in Python v3.15)")_,_ [_Device_](/docs/thunder/core/generated/thunder.core.devices.Device#thunder.core.devices.Device "thunder.core.devices.Device")_\]_) –
    
*   **dtype** ([_dtype_](/docs/thunder/core/generated/thunder.core.dtypes.dtype#thunder.core.dtypes.dtype "thunder.core.dtypes.dtype")) –

---

**Navigation**

- Parent: [Generated](/docs/thunder/0.2.6/api-reference/generated.md)
