I have a variable that holds List
public class PhraseSource
{
public int CategoryId { get; set; }
[PrimaryKey, NotNull]
public string Id { get; set; }
public string English { get; set; }
public string Romaji { get; set; }
public string Kana { get; set; }
public string Kanji { get; set; }
public string WordType { get; set; }
public int Modified { get; set; }
}
public int OneHash { get; set; }
public int TwoHash { get; set; }
You can use
public int OneHash => Math.Abs(Id.GetHashCode() % 10);
public int TwoHash => Math.Abs(Id.GetHashCode() % 100);
It takes the Hashcode of the Id string and returns the reminder of an division.