Fix rand
This commit is contained in:
parent
b52f6689fe
commit
f5a687acb1
@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>Bangalore City Name Generator</title>
|
<title>Bangalore Area Name Generator</title>
|
||||||
<style>
|
<style>
|
||||||
html,
|
html,
|
||||||
body,
|
body,
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
use macroquad::prelude::*;
|
use macroquad::prelude::*;
|
||||||
use macroquad::rand;
|
use macroquad::rand;
|
||||||
|
use miniquad::date;
|
||||||
|
|
||||||
#[macroquad::main("MyGame")]
|
#[macroquad::main("MyGame")]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
|
rand::srand(date::now() as u64);
|
||||||
let mut rand_name = String::from("Random bangalore area names");
|
let mut rand_name = String::from("Random bangalore area names");
|
||||||
let mut last_update = 0.0;
|
let mut last_update = 0.0;
|
||||||
loop {
|
loop {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user