Unverified Commit d6a8dc35 authored by Bennett Piater's avatar Bennett Piater
Browse files

generate floats instead of ints

parent 73f9ad56
......@@ -13,7 +13,10 @@ async function main({id}) {
});
let date = Date.now()
let value = Math.floor(Math.random() * 41)
const min = 0
const max = 40
let value = Math.random() * (max - min) + min
console.log(value)
const producer = kafka.producer()
await producer.connect()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment