<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [HackingFormulas](./bitburner.hackingformulas.md) &gt; [hackChance](./bitburner.hackingformulas.hackchance.md)

## HackingFormulas.hackChance() method

<b>Signature:</b>

```typescript
hackChance(server: number, player: number): number;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  server | number |  |
|  player | number |  |

<b>Returns:</b>

number