Files
bitburner-src/src/utils/IPAddress.ts
T
Olivier Gagnon 76ccb0ba36 lint
2022-05-25 11:43:43 -04:00

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)}`;