mirror of
https://github.com/remvze/moodist.git
synced 2026-03-29 21:02:07 -04:00
10 lines
205 B
TypeScript
10 lines
205 B
TypeScript
export function generateRandomBinaryString(length: number) {
|
|
let binaryString = '';
|
|
|
|
for (let i = 0; i < length; i++) {
|
|
binaryString += Math.floor(Math.random() * 2);
|
|
}
|
|
|
|
return binaryString;
|
|
}
|