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
- Host: GitHub
- URL: https://github.com/jackkimmins/rand
- Owner: jackkimmins
- Created: 2022-01-02T10:14:42.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-02T10:40:58.000Z (over 4 years ago)
- Last Synced: 2025-06-11T09:56:41.435Z (about 1 year ago)
- Topics: csharp, opencv, random-number-generators, webcam
- Language: C#
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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();
}
}
}
}
```