mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-05 15:17:48 +02:00
9 lines
290 B
TypeScript
9 lines
290 B
TypeScript
import { getRandomByte } from "./helpers/getRandomByte";
|
|
|
|
/**
|
|
* Generate a random IP address
|
|
* Does not check to see if the IP already exists in the game
|
|
*/
|
|
export const createRandomIp = (): string =>
|
|
`${getRandomByte(99)}.${getRandomByte(9)}.${getRandomByte(9)}.${getRandomByte(9)}`;
|