You're breathtaking!

This commit is contained in:
Wojtek Figat
2020-12-07 23:40:54 +01:00
commit 6fb9eee74c
5143 changed files with 1153594 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
#pragma once
#include <stdlib.h>
namespace Random
{
/// <summary>
/// Generates a pseudo-random number from normalized range [0;1].
/// </summary>
/// <returns>The random number.</returns>
inline float Rand()
{
return (float)rand() / (float)RAND_MAX;
}
}