An open API service indexing awesome lists of open source software.

https://github.com/jackkimmins/rand

Random Numbers Seeded with WebCam Feed
https://github.com/jackkimmins/rand

csharp opencv random-number-generators webcam

Last synced: 2 months ago
JSON representation

Random Numbers Seeded with WebCam Feed

Awesome Lists containing this project

README

          

# RAND
Random Numbers Seeded with WebCam Feed

1. Gets frame from video source using OpenCV.
2. Converts it to a byte array.
3. Hashes it using CRC32 to get an int.
4. Use that int to seed the Random generator.

## Demo
```csharp
using System;

namespace RAND
{
class Program
{
static void Main(string[] args)
{
RAND random = new RAND();

while (true)
{
random.GenSeed();
Console.WriteLine(random.Next(1, 100));
Console.ReadLine();
}
}
}
}
```