<commit_before>/* RTcmix  - Copyright (C) 2004  The RTcmix Development Team
   See ``AUTHORS'' for a list of contributors. See ``LICENSE'' for
   the license to this software and for a DISCLAIMER OF ALL WARRANTIES.
*/

// Classes for generating random numbers   JGG, 6/22/04
// Most of this code is based on C functions written by <NAME>.
// One class is based on code written by <NAME>.

#ifndef _RANDOM_H_
#define _RANDOM_H_

#include <RefCounted.h>

// Base class

class Random : public RefCounted {
public:
   Random(int aseed, double min, double max)
                  : _min(min), _max(max) { seed(aseed); }<commit_msg>Add enum for distribution types.<commit_after>/* RTcmix  - Copyright (C) 2004  The RTcmix Development Team
   See ``AUTHORS'' for a list of contributors. See ``LICENSE'' for
   the license to this software and for a DISCLAIMER OF ALL WARRANTIES.
*/

// Classes for generating random numbers   JGG, 6/22/04
// Most of this code is based on C functions written by <NAME>.
// One class is based on code written by <NAME>.

#ifndef _RANDOM_H_
#define _RANDOM_H_

#include <RefCounted.h>

enum {
	kLinearRandom = 0,
	kLowLinearRandom,
	kHighLinearRandom,
	kTriangleRandom,
	kGaussianRandom,
	kCauchyRandom,
	kProbRandom
}

// Base class

class Random : public RefCounted {
public:
   Random(int aseed, double min, double max)
                  : _min(min), _max(max) { seed(aseed); }
{'fraction_non_alphanumeric': 0.09408410548823949, 'fraction_numerical': 0.0135424091233072, 'mean_word_length': 3.4430379746835444, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6137010', 'n_tokens_mistral': 466, 'n_tokens_neox': 441, 'n_words': 175}