> For the complete documentation index, see [llms.txt](https://daikirai.gitbook.io/scripting/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://daikirai.gitbook.io/scripting/documentation/util.md).

# util

### color

replaces `&` color codes with the minecraft color symbol.

```java
String colored = util.color(String text);
```

***

### colorSymbol

minecraft unicode character for color codes.

```java
String colorSymbol = util.colorSymbol;
```

***

### decodeb64

decode base 64 encoded text.

```java
String decoded = util.decodeb64(String b64);
```

***

### encodeb64

encode text into base 64.

```java
String encoded = util.encodeb64(String text);
```

***

### randomDouble

returns a random `double` within the inclusive range.

```java
double random = util.randomDouble(double min, double max);
```

***

### randomInt

returns a random `int` within the inclusive range.

```java
int random = util.randomInt(int min, int max);
```

***

### round

rounds a double to the specified number of decimal places.

```java
double rounded = util.round(double value, int decimals);
```

***

### strip

removes minecraft color codes from a string.

```java
String plain = util.strip(String text);
```
