First commit
This commit is contained in:
commit
48866cc6ab
20 changed files with 6301 additions and 0 deletions
9
app/random/page.tsx
Normal file
9
app/random/page.tsx
Normal file
|
@ -0,0 +1,9 @@
|
|||
import { redirect } from 'next/navigation'
|
||||
|
||||
export default function Home() {
|
||||
let roomNumber = ""
|
||||
for(let i = 0; i < 6; i++) {
|
||||
roomNumber += Math.floor(Math.random() * 9.99)
|
||||
}
|
||||
redirect('/' + roomNumber.toString())
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue