bitburner-src/doc/source/netscript/basicfunctions/hackChance.rst

16 lines
422 B
ReStructuredText
Raw Normal View History

hackChance() Netscript Function
===============================
2021-03-12 08:51:56 +01:00
.. js:function:: hackChance(hostname)
:RAM cost: 1 GB
2021-03-12 08:51:56 +01:00
:param string hostname: Hostname of target server.
:returns: The chance you have of successfully hacking the target server.
in decimal form.
2021-03-12 08:51:56 +01:00
Example:
.. code-block:: javascript
hackChance("foodnstuff"); // returns: .5
// So 50% chance to hack "foodnstuff"