Skip to content

Instantly share code, notes, and snippets.

View scottwallacesh's full-sized avatar

Scott Wallace scottwallacesh

View GitHub Profile
@scottwallacesh
scottwallacesh / determrand.py
Created November 9, 2018 09:46
Deterministic "random" numbers filter_plugin for ansible
# vim: set ft=python:
"""Deterministic "random" numbers jinja filter for ansible.
Place in filter_plugins/ to use.
"""
import random
def determrand(high, seed, low=0):