# RandomString

> Generates a random string with a given length and case.

Generates a random string with a given length and case.

## Definition

**Namespace:** UiPath.Testing.API

**Assembly:** UiPath.Testing.Activities.Api (in UiPath.Testing.Activities.Api.dll)

## `RandomString(Case,Int32)`

```
string RandomString(
    Case caseValue,
    int length
)
```

`caseValue` `Case` : Specify the case style of the generated string. Supported styles: `LowerCase`, `UpperCase`, `CamelCase`, `Mixed`.

`length` [Int32](https://learn.microsoft.com/dotnet/api/system.int32) : Specify the length of the string.

## Return value

[String](https://learn.microsoft.com/dotnet/api/system.string)

Generated random string.
