<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) > [bitburner](./bitburner.md) > [HackingFormulas](./bitburner.hackingformulas.md) > [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